summaryrefslogtreecommitdiff
path: root/Rx/v2/src/rxcpp/rx-operators.hpp
blob: 67bb79f399db353f913c7fcab159fcc96fd42989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.

#pragma once

#if !defined(RXCPP_RX_OPERATORS_HPP)
#define RXCPP_RX_OPERATORS_HPP

#include "rx-includes.hpp"

namespace rxcpp {

namespace operators {

struct tag_operator {};
template<class T>
struct operator_base
{
    typedef T value_type;
    typedef tag_operator operator_tag;
};
template<class T>
class is_operator
{
    template<class C>
    static typename C::operator_tag* check(int);
    template<class C>
    static void check(...);
public:
    static const bool value = std::is_convertible<decltype(check<typename std::decay<T>::type>(0)), tag_operator*>::value;
};

}
namespace rxo=operators;

}

#include "operators/rx-subscribe.hpp"
#include "operators/rx-filter.hpp"
#include "operators/rx-map.hpp"
#include "operators/rx-flat_map.hpp"
#include "operators/rx-publish.hpp"
#include "operators/rx-ref_count.hpp"
#include "operators/rx-connect_forever.hpp"
#include "operators/rx-take.hpp"
#include "operators/rx-take_until.hpp"

#endif