feat add rxcpp

This commit is contained in:
tqcq
2024-03-14 20:50:17 +08:00
parent 15bdc54bef
commit 90da26f0a4
124 changed files with 27992 additions and 511 deletions

View File

@@ -0,0 +1,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