C++ Library Extensions 2022.12.09
To help learn modern C++ programming
030-premature_exit.cpp File Reference
Include dependency graph for 030-premature_exit.cpp:

Go to the source code of this file.

Functions

void serial_algorithm ()
 
template<typename Policy , typename IteratorBegin , typename IteratorEnd , typename Callback >
bool my_for_each (Policy &&policy, IteratorBegin &&begin, IteratorEnd &&end, Callback &&callback)
 
void safe_serial_algorithm ()
 
template<typename Policy , typename IteratorBegin , typename IteratorEnd , typename Callback >
void safe_for_each (Policy &&policy, IteratorBegin &&begin, IteratorEnd &&end, Callback &&callback)
 
template<typename Policy , typename IteratorBegin , typename IteratorEnd , typename Callback >
void go_parallel (Policy &&policy, IteratorBegin &&begin, IteratorEnd &&end, Callback &&callback)
 
void safe_parallel_algorithm ()
 
void safe_parallel_algorithm_bool ()
 
void safe_parallel_algorithm_return ()
 
void safe_parallel_algorithm_throw ()
 
int main ()
 

Variables

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

Function Documentation

◆ go_parallel()

template<typename Policy , typename IteratorBegin , typename IteratorEnd , typename Callback >
void go_parallel ( Policy &&  policy,
IteratorBegin &&  begin,
IteratorEnd &&  end,
Callback &&  callback 
)

Definition at line 123 of file 030-premature_exit.cpp.

Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 274 of file 030-premature_exit.cpp.

Here is the call graph for this function:

◆ my_for_each()

template<typename Policy , typename IteratorBegin , typename IteratorEnd , typename Callback >
bool my_for_each ( Policy &&  policy,
IteratorBegin &&  begin,
IteratorEnd &&  end,
Callback &&  callback 
)

Definition at line 45 of file 030-premature_exit.cpp.

Here is the caller graph for this function:

◆ safe_for_each()

template<typename Policy , typename IteratorBegin , typename IteratorEnd , typename Callback >
void safe_for_each ( Policy &&  policy,
IteratorBegin &&  begin,
IteratorEnd &&  end,
Callback &&  callback 
)

Definition at line 100 of file 030-premature_exit.cpp.

Here is the caller graph for this function:

◆ safe_parallel_algorithm()

void safe_parallel_algorithm ( )

Definition at line 145 of file 030-premature_exit.cpp.

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

◆ safe_parallel_algorithm_bool()

void safe_parallel_algorithm_bool ( )

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

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

◆ safe_parallel_algorithm_return()

void safe_parallel_algorithm_return ( )

Definition at line 207 of file 030-premature_exit.cpp.

Here is the caller graph for this function:

◆ safe_parallel_algorithm_throw()

void safe_parallel_algorithm_throw ( )

Definition at line 241 of file 030-premature_exit.cpp.

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

◆ safe_serial_algorithm()

void safe_serial_algorithm ( )

Definition at line 68 of file 030-premature_exit.cpp.

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

◆ serial_algorithm()

void serial_algorithm ( )

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

Here is the caller graph for this function:

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 4 of file 030-premature_exit.cpp.

◆ stream

tpf::sstream stream

Definition at line 3 of file 030-premature_exit.cpp.