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
v2
src
rxcpp
sources
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
()
43
->
observable<T, detail::never<T>
> {
44
return
observable<T, detail::never<T>
>(detail::never<T>());
45
}
46
47
}
48
49
}
50
51
#endif
rxcpp
Definition:
rx-all.hpp:26
rxcpp::sources::never
auto never() -> observable< T, detail::never< T >>
Returns an observable that never sends any items or notifications to observer.
Definition:
rx-never.hpp:42
rxcpp::observable
a source of values. subscribe or use one of the operator methods that return a new observable,...
Definition:
rx-observable.hpp:478
Generated on Wed Feb 13 2019 10:04:09 for RxCpp by
1.8.15