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-skip_last.hpp File Reference

Make new observable with skipped last count items from this observable. More...

#include "../rx-includes.hpp"
Include dependency graph for rx-skip_last.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< skip_last_tag >
 

Namespaces

 rxcpp
 
 rxcpp::operators
 

Macros

#define RXCPP_OPERATORS_RX_SKIP_LAST_HPP
 

Functions

template<class... AN>
auto rxcpp::operators::skip_last (AN &&...an) -> operator_factory< skip_last_tag, AN... >
 Make new observable with skipped last count items from this observable. More...
 

Detailed Description

Make new observable with skipped last count items from this observable.

Template Parameters
Countthe type of the items counter.
Parameters
tthe number of last items to skip.
Returns
An observable that is identical to the source observable except that it does not emit the last t items that the source observable emits.
Sample Code
auto values = rxcpp::observable<>::range(1, 7).skip_last(3);
values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
OnNext: 1
OnNext: 2
OnNext: 3
OnNext: 4
OnCompleted

Macro Definition Documentation

#define RXCPP_OPERATORS_RX_SKIP_LAST_HPP