12#include <rpp/utils/constraints.hpp>
13#include <rpp/sources/create.hpp>
14#include <rpp/subscriptions/composite_subscription.hpp>
15#include <rpp/subjects/fwd.hpp>
17namespace rpp::subjects::details
21template<rpp::constra
int::decayed_type T, subject_strategy<T> Strategy>
25 auto get_subscriber()
const
27 return m_strategy.get_subscriber();
30 auto get_observable()
const
32 return source::create<T>([strategy = this->m_strategy](
const auto& sub)
34 strategy.on_subscribe(sub);
40 : m_strategy{std::forward<decltype(args)>(args)...} {}
42 const Strategy& get_strategy()
const {
return m_strategy; }
45 Strategy m_strategy{};
Definition: base_subject.hpp:23
Definition: base_subject.hpp:19