ReactivePlusPlus
ReactiveX implementation for C++20
Loading...
Searching...
No Matches
fwd.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
11#pragma once
12
13#include <rpp/utils/constraints.hpp>
14
15namespace rpp::details
16{
17 template<rpp::constraint::decayed_type TDisposable>
19} // namespace rpp::details
20
21namespace rpp
22{
25
26 template<rpp::constraint::decayed_type TDisposable>
28
35
42} // namespace rpp
43
44namespace rpp::details::disposables
45{
46 namespace constraint
47 {
48 template<typename T>
49 concept disposables_container = requires(T& c, const T& const_c, const rpp::disposable_wrapper& d) {
50 c.push_back(d);
51 const_c.dispose();
52 c.clear();
53 };
54 } // namespace constraint
55
60
64 template<size_t Count>
66
68} // namespace rpp::details::disposables
69
70namespace rpp
71{
73
74 template<rpp::constraint::is_nothrow_invocable Fn>
76
78
79 template<rpp::constraint::is_nothrow_invocable Fn>
80 disposable_wrapper make_callback_disposable(Fn&& invocable);
81} // namespace rpp
Disposable invokes underlying callable on disposing.
Definition fwd.hpp:75
Disposable which can keep some other sub-disposables. When this root disposable is disposed,...
Definition composite_disposable.hpp:175
Container with fixed std::array as underlying storage.
Definition fwd.hpp:65
Main RPP wrapper over disposables.
Definition fwd.hpp:27
Definition refcount_disposable.hpp:31
Definition interface_composite_disposable.hpp:19
Interface of disposable.
Definition interface_disposable.hpp:23