|
sandbox
|
Public Member Functions | |
| thread_pool (const std::size_t size=std::thread::hardware_concurrency()) | |
| thread_pool (const thread_pool &)=delete | |
| thread_pool (thread_pool &&)=delete | |
| auto | operator= (const thread_pool &) -> thread_pool &=delete |
| auto | operator= (thread_pool &&) -> thread_pool &=delete |
|
template<typename Function , typename... Args> requires (std::is_invocable_v<Function, Args...>) | |
| auto | submit (Function &&function, Args &&... args) -> std::future< std::invoke_result_t< Function, Args... > > |