ReactivePlusPlus
One more implementation of ReactiveX approach in C++ with care about performance and templates in mind
 
Loading...
Searching...
No Matches
fwd.hpp
1// ReactivePlusPlus library
2//
3// Copyright Aleksey Loginov 2022 - 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{
17struct observer_tag{};
18
19template<constraint::decayed_type T>
21} // namespace rpp::details
22
23namespace rpp::constraint
24{
25template<typename Fn, typename Type> concept on_next_fn = std::invocable<std::decay_t<Fn>, Type>;
26template<typename Fn> concept on_error_fn = std::invocable<std::decay_t<Fn>, std::exception_ptr>;
27template<typename Fn> concept on_completed_fn = std::invocable<std::decay_t<Fn>>;
28} // namespace rpp::constraint
29
30namespace rpp
31{
32template<constraint::decayed_type Type>
34
35template<constraint::decayed_type T,
40
41template<typename...Args>
43} // namespace rpp
Dynamic (type-erased) version of observer (comparing to specific_observer)
Definition: dynamic_observer.hpp:109
Observer specified with specific template types of callbacks to avoid extra heap usage.
Definition: specific_observer.hpp:35
Definition: fwd.hpp:27
Definition: fwd.hpp:26
Definition: fwd.hpp:25
Definition: fwd.hpp:17
Definition: fwd.hpp:20