ReactivePlusPlus
ReactiveX implementation for C++20
Loading...
Searching...
No Matches
ref_count.hpp
1#pragma once
2
3#include <rpp/observables/connectable_observable.hpp>
4
5namespace rpp::operators::details
6{
8 {
9 template<rpp::constraint::observable OriginalObservable, rpp::constraint::subject Subject>
11 {
12 return observable.ref_count();
13 }
14 };
15} // namespace rpp::operators::details
16
17namespace rpp::operators
18{
29 inline auto ref_count()
30 {
32 }
33} // namespace rpp::operators
Extension over raw observable with ability to be manually connected at any time or ref_counting (shar...
Definition fwd.hpp:86
Base class for any observable used in RPP. It handles core callbacks of observable.
Definition observable.hpp:38
auto ref_count()
Forces rpp::connectable_observable to behave like common observable.
Definition ref_count.hpp:29
Definition ref_count.hpp:8