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/subscribers/fwd.hpp> // on_subscribe_fn
14#include <rpp/utils/constraints.hpp> // decayed type
15
16namespace rpp::details
17{
19
20template<constraint::decayed_type Type>
22struct dynamic_observable_tag;
23} // namespace rpp::details
24
25namespace rpp::constraint
26{
27template<typename Fn, typename T> concept on_subscribe_fn = std::invocable<std::decay_t<Fn>, dynamic_subscriber<T>>;
28} // namespace rpp::constraint
29
30namespace rpp
31{
32
45template<constraint::decayed_type Type, constraint::on_subscribe_fn<Type> OnSubscribeFn>
47
57template<constraint::decayed_type Type>
59
60template<constraint::decayed_type KeyType,
61 constraint::decayed_type Type,
64} // namespace rpp
Type-less observable (or partially untyped) that has the notion of Type but hides the notion of on_su...
Definition: dynamic_observable.hpp:89
Definition: grouped_observable.hpp:20
Type-full observable (or typed) that has the notion of Type and upstream observables for C++ compiler...
Definition: specific_observable.hpp:39
Definition: fwd.hpp:27
Definition: fwd.hpp:18