ThreadSchedule 3.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
copyable_function.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <functional>
4#include <utility>
5
7{
8
9template <typename Signature>
10using copyable_function = std::function<Signature>;
11
12template <typename Signature, typename Callable>
13[[nodiscard]] auto
15{
16 return copyable_function<Signature>(std::forward<Callable>(callable));
17}
18
19} // namespace threadschedule::detail
Aggregates multiple thread_registry_backend instances into a single queryable view.
auto make_copyable_function(Callable &&callable) -> copyable_function< Signature >
std::function< Signature > copyable_function