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

Go to the source code of this file.

Functions

void problem_with_parallel_algorithm ()
 
void safer_way_of_parallel_algorithm ()
 
void safer_way_of_parallel_algorithm_using_exception ()
 
int main ()
 

Variables

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

Function Documentation

◆ main()

int main ( )

Definition at line 156 of file 034-exception_safe.cpp.

Here is the call graph for this function:

◆ problem_with_parallel_algorithm()

void problem_with_parallel_algorithm ( )

Definition at line 22 of file 034-exception_safe.cpp.

◆ safer_way_of_parallel_algorithm()

void safer_way_of_parallel_algorithm ( )

Definition at line 58 of file 034-exception_safe.cpp.

◆ safer_way_of_parallel_algorithm_using_exception()

void safer_way_of_parallel_algorithm_using_exception ( )

Definition at line 102 of file 034-exception_safe.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 20 of file 034-exception_safe.cpp.

◆ stream

tpf::sstream stream

Definition at line 19 of file 034-exception_safe.cpp.