C++ Library Extensions 2022.12.09
To help learn modern C++ programming
030-execution_policy.cpp File Reference
#include <tpf_output.hpp>
#include <tpf_chrono_random.hpp>
#include <execution>
Include dependency graph for 030-execution_policy.cpp:

Go to the source code of this file.

Classes

class  vector_3d< ElementType >
 

Functions

void test_vector_3d ()
 
template<typename ExecutionPolicy >
void naive_dangerous_parallel_algorithm (ExecutionPolicy policy, size_t test_count, size_t element_count)
 
void test_naive_dangerous_parallel_algorithm ()
 
template<typename ExecutionPolicy >
void why_naive_dangerous_parallel_algorithm (ExecutionPolicy policy, size_t test_count, size_t element_count)
 
void test_why_naive_dangerous_parallel_algorithm ()
 
int main ()
 

Variables

tpf::sstream stream
 
auto nl = tpf::nl
 
auto endl = tpf::endl
 

Function Documentation

◆ main()

int main ( )

Definition at line 176 of file 030-execution_policy.cpp.

Here is the call graph for this function:

◆ naive_dangerous_parallel_algorithm()

template<typename ExecutionPolicy >
void naive_dangerous_parallel_algorithm ( ExecutionPolicy  policy,
size_t  test_count,
size_t  element_count 
)

Definition at line 56 of file 030-execution_policy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_naive_dangerous_parallel_algorithm()

void test_naive_dangerous_parallel_algorithm ( )

Definition at line 92 of file 030-execution_policy.cpp.

Here is the call graph for this function:

◆ test_vector_3d()

void test_vector_3d ( )

Definition at line 43 of file 030-execution_policy.cpp.

◆ test_why_naive_dangerous_parallel_algorithm()

void test_why_naive_dangerous_parallel_algorithm ( )

Definition at line 153 of file 030-execution_policy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ why_naive_dangerous_parallel_algorithm()

template<typename ExecutionPolicy >
void why_naive_dangerous_parallel_algorithm ( ExecutionPolicy  policy,
size_t  test_count,
size_t  element_count 
)

Definition at line 108 of file 030-execution_policy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 7 of file 030-execution_policy.cpp.

◆ nl

auto nl = tpf::nl

Definition at line 6 of file 030-execution_policy.cpp.

◆ stream

tpf::sstream stream

Definition at line 5 of file 030-execution_policy.cpp.