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/observers/constraints.hpp>
14
#include <rpp/utils/constraints.hpp>
15
16
namespace
rpp::details
17
{
18
struct
subscriber_tag
{};
19
20
template
<constra
int
::decayed_type Type>
21
struct
typed_subscriber_tag
:
public
subscriber_tag
{};
22
}
// namespace rpp::details
23
24
namespace
rpp
25
{
26
template
<constra
int
::decayed_type Type, constra
int
::decayed_observer Observer>
27
class
specific_subscriber
;
28
29
template
<constra
int
::decayed_type Type>
30
class
dynamic_subscriber
;
31
}
// namespace rpp
rpp::dynamic_subscriber
subscriber which uses dynamic_observer<T> to hide original callbacks
Definition:
dynamic_subscriber.hpp:24
rpp::specific_subscriber
specific version of subscriber which stores type of observer used inside to prevent extra allocations
Definition:
specific_subscriber.hpp:31
rpp::details::subscriber_tag
Definition:
fwd.hpp:18
rpp::details::typed_subscriber_tag
Definition:
fwd.hpp:21
src
rpp
rpp
subscribers
fwd.hpp
Generated by
1.9.7