MCPcopy Create free account
hub / github.com/ConorWilliams/libfork / make_scheduler

Function make_scheduler

test/source/algorithm/map.cpp:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33template <typename T>
34auto 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
42template <typename T>
43void check(T const &v, int k) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected