blob: 51ed07d8b2a15d3db6642c41b846050ec9dcfab2 (
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
48
49
|
// 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_SOURCES_HPP)
#define RXCPP_RX_SOURCES_HPP
#include "rx-includes.hpp"
namespace rxcpp {
namespace sources {
struct tag_source {};
template<class T>
struct source_base
{
typedef T value_type;
typedef tag_source source_tag;
};
template<class T>
class is_source
{
template<class C>
static typename C::source_tag* check(int);
template<class C>
static void check(...);
public:
static const bool value = std::is_convertible<decltype(check<rxu::decay_t<T>>(0)), tag_source*>::value;
};
}
namespace rxs=sources;
}
#include "sources/rx-create.hpp"
#include "sources/rx-range.hpp"
#include "sources/rx-iterate.hpp"
#include "sources/rx-interval.hpp"
#include "sources/rx-empty.hpp"
#include "sources/rx-defer.hpp"
#include "sources/rx-never.hpp"
#include "sources/rx-error.hpp"
#include "sources/rx-scope.hpp"
#include "sources/rx-timer.hpp"
#endif
|