A function object class used by detach_loop() and submit_loop() to execute a loop function over a specified range of indices.
More...
#include <BS_thread_pool.hpp>
|
|
std::shared_ptr< std::decay_t< F > > | loop_ptr |
| |
|
T | start |
| |
|
T | end |
| |
template<typename T, typename F>
struct BS::loop_task< T, F >
A function object class used by detach_loop() and submit_loop() to execute a loop function over a specified range of indices.
- Template Parameters
-
| T | The type of the indices. |
| F | The type of the function. |
◆ operator()()
template<typename T , typename F >
693 {
694 for (T i = start; i < end; ++i)
695 (*loop_ptr)(i);
696 }
The documentation for this struct was generated from the following file: