ReactivePlusPlus
ReactiveX implementation for C++20
Loading...
Searching...
No Matches
disposables_strategy.hpp
1// ReactivePlusPlus library
2//
3// Copyright Aleksey Loginov 2023 - present.
4// Distributed under the Boost Software License, Version 1.0.
5// (See accompanying file LICENSE_1_0.txt or copy at
6// https://www.boost.org/LICENSE_1_0.txt)
7//
8// Project home: https://github.com/victimsnino/ReactivePlusPlus
9
10#pragma once
11
12#include <rpp/observers/fwd.hpp>
13
14#include <rpp/utils/constraints.hpp>
15
16namespace rpp::details::observables
17{
26
27 template<size_t Count>
36
38
39 namespace constraint
40 {
41 template<typename T>
42 concept disposables_strategy = requires(const T&) {
43 typename T::template add<size_t{}>;
44 typename T::observer_disposables_strategy;
45 typename T::disposables_container;
47 };
48 } // namespace constraint
49} // namespace rpp::details::observables
Container with fixed std::array as underlying storage.
Definition fwd.hpp:65
Definition disposables_strategy.hpp:19
Definition disposables_strategy.hpp:29