ReactivePlusPlus
ReactiveX implementation for C++20
Loading...
Searching...
No Matches
rpp::constraint::operator_ Concept Reference

#include <fwd.hpp>

Concept definition

template<typename Op, typename Type, typename DisposableStrategy>
Definition fwd.hpp:163
Same as rpp::constraint::operator_lift but with custom disposables logic. For example,...
Definition fwd.hpp:134
Accept downstream observer and return new upstream (of type Type) observer.
Definition fwd.hpp:121
Simple operator defining logic how to subscribe passed observer to passed observable....
Definition fwd.hpp:109

Detailed Description

Concept for any RPP-related operator:

  • operator should have type-traits: template sub-struct operator_traits where template typename is type of upstream.
    • Such and sub-struct should have result_type using to type of final observable/downstream observer
    • You can place any static_asserts to this operator_traits if you have some specific requiremenets
  • operator should have template using updated_optimal_disposables_strategy accepting rpp::details::observables::disposbles_strategy and returning new (updated) strategy to provide optimal behavior. For example, your operator could add+1 disposables to the strategy
  • operator should satisfy rpp::constraint::operator_subscribe, rpp::constraint::operator_lift or rpp::constraint::operator_lift_with_disposables_strategy