25 static constexpr auto preferred_disposables_mode = rpp::details::observers::disposables_mode::None;
27 RPP_NO_UNIQUE_ADDRESS TObserver observer;
28 RPP_NO_UNIQUE_ADDRESS Fn fn;
31 void on_next(T&& v)
const
33 if (fn(rpp::utils::as_const(v)))
34 observer.on_next(std::forward<T>(v));
37 void on_error(
const std::exception_ptr& err)
const { observer.on_error(err); }
39 void on_completed()
const { observer.on_completed(); }
43 bool is_disposed()
const {
return observer.is_disposed(); }