13#include <rpp/observers/details/fwd.hpp>
15#include <rpp/defs.hpp>
16#include <rpp/disposables/disposable_wrapper.hpp>
20namespace rpp::details::observers
22 template<
typename DisposableContainer>
23 class local_disposables_strategy
26 local_disposables_strategy() =
default;
27 local_disposables_strategy(local_disposables_strategy&& other)
noexcept =
default;
31 m_upstreams.push_back(d);
34 bool is_disposed() const noexcept
42 m_upstreams.dispose();
46 RPP_NO_UNIQUE_ADDRESS DisposableContainer m_upstreams{};
47 mutable bool m_is_disposed{};
54 static constexpr bool is_disposed()
noexcept {
return false; }
56 static constexpr void dispose() {}
disposable_wrapper_impl< interface_disposable > disposable_wrapper
Wrapper to keep "simple" disposable. Specialization of rpp::disposable_wrapper_impl.
Definition fwd.hpp:34
Definition disposables_strategy.hpp:51