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

Function make_scheduler

test/source/algorithm/explicit.cpp:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26template <typename T>
27auto make_scheduler() -> T {
28 if constexpr (std::constructible_from<T, std::size_t>) {
29 return T{1};
30 } else {
31 return T{};
32 }
33}
34
35} // namespace
36

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected