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

Function operator|

03.23-rangesCustomTakeView0/main.cpp:80–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79 template<std::ranges::viewable_range R, typename T>
80 constexpr auto
81 operator|(R&& r,
82 const custom_take_range_adaptor_closure<T>& a)
83 {
84 return a(std::forward<R>(r));
85 }
86
87} // namespace details
88

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected