| 32 | |
| 33 | template <typename T> |
| 34 | auto make_scheduler() -> T { |
| 35 | if constexpr (std::constructible_from<T, std::size_t>) { |
| 36 | return T{std::min(4U, std::thread::hardware_concurrency())}; |
| 37 | } else { |
| 38 | return T{}; |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | template <typename T> |
| 43 | void check(T const &v, int k) { |
nothing calls this directly
no outgoing calls
no test coverage detected