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++.
Classes | Namespaces | Macros | Functions
rx-ignore_elements.hpp File Reference

Do not emit any items from the source Observable, but allow termination notification (either onError or onCompleted) to pass through unchanged. More...

#include "../rx-includes.hpp"
Include dependency graph for rx-ignore_elements.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rxcpp::member_overload< ignore_elements_tag >
 

Namespaces

 rxcpp
 
 rxcpp::operators
 

Macros

#define RXCPP_OPERATORS_RX_IGNORE_ELEMENTS_HPP
 

Functions

template<class... AN>
auto rxcpp::operators::ignore_elements (AN &&...an) -> operator_factory< ignore_elements_tag, AN... >
 Do not emit any items from the source Observable, but allow termination notification (either onError or onCompleted) to pass through unchanged. More...
 

Detailed Description

Do not emit any items from the source Observable, but allow termination notification (either onError or onCompleted) to pass through unchanged.

Returns
Observable that emits termination notification from the source observable.
Sample Code
auto values = rxcpp::observable<>::from(1, 2, 3, 4, 5).ignore_elements();
values.
[](int v) { printf("OnNext: %d\n", v); },
[]() { printf("OnCompleted\n"); });
OnCompleted

Macro Definition Documentation

#define RXCPP_OPERATORS_RX_IGNORE_ELEMENTS_HPP