MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / operator|

Function operator|

03.29-rangesCustomTakeView1/main.cpp:74–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 template<std::ranges::viewable_range R,
73 std::invocable<R> Adaptor>
74 constexpr auto operator|(R&& r, const Adaptor& a)
75 {
76 return a(std::forward<R>(r));
77 }
78
79} // namespace details
80

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected