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-never.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_NEVER_HPP)
6 #define RXCPP_SOURCES_RX_NEVER_HPP
7 
8 #include "../rx-includes.hpp"
9 
23 namespace rxcpp {
24 
25 namespace sources {
26 
27 namespace detail {
28 
29 template<class T>
30 struct never : public source_base<T>
31 {
32  template<class Subscriber>
33  void on_subscribe(Subscriber) const {
34  }
35 };
36 
37 }
38 
41 template<class T>
42 auto never()
44  return observable<T, detail::never<T>>(detail::never<T>());
45 }
46 
47 }
48 
49 }
50 
51 #endif
Definition: rx-all.hpp:26
auto never() -> observable< T, detail::never< T >>
Definition: rx-never.hpp:42
a source of values. subscribe or use one of the operator methods that return a new observable...
Definition: rx-observable.hpp:510