MCPcopy Create free account
hub / github.com/AlexInLog/ReactivePlusPlus / operator()

Method operator()

src/rpp/rpp/sources/from.hpp:140–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 {
139 template<typename Callable>
140 auto operator()(Callable&& fn) const
141 {
142 if constexpr (std::same_as<utils::decayed_invoke_result_t<Callable>, void>)
143 {
144 fn();
145 return rpp::utils::none{};
146 }
147 else
148 {
149 return fn();
150 }
151 }
152 };
153} // namespace rpp::details
154

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected