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++.
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
Definition: rx-all.hpp:26
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