sled/3party/rxcpp/rx-sources.hpp
2024-03-14 20:50:17 +08:00

50 lines
1.0 KiB
C++

// 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