RxCpp
The Reactive Extensions for Native (RxCpp) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators in both C and C++.
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
Rx
v2
src
rxcpp
sources
rx-empty.hpp
Go to the documentation of this file.
1
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
2
3
#pragma once
4
5
#if !defined(RXCPP_SOURCES_RX_EMPTY_HPP)
6
#define RXCPP_SOURCES_RX_EMPTY_HPP
7
8
#include "../rx-includes.hpp"
9
30
namespace
rxcpp
{
31
32
namespace
sources {
33
36
template
<
class
T>
37
auto
empty
()
38
-> decltype(from<T>()) {
39
return
from<T>();
40
}
43
template
<
class
T,
class
Coordination>
44
auto
empty
(Coordination cn)
45
-> decltype(from<T>(std::move(cn))) {
46
return
from<T>(std::move(cn));
47
}
48
49
}
50
51
}
52
53
#endif
rxcpp
Definition:
rx-all.hpp:26
rxcpp::sources::empty
auto empty() -> decltype(from< T >())
Returns an observable that sends no items to observer and immediately completes, on the specified sch...
Definition:
rx-empty.hpp:37
Generated on Wed Apr 26 2017 23:15:55 for RxCpp by
1.8.11