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

Discards the first items fulfilling the predicate from this observable emit them from the new observable that is returned. More...

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

Namespaces

 rxcpp
 
 rxcpp::operators
 

Macros

#define RXCPP_OPERATORS_RX_SKIP_WHILE_HPP
 

Functions

template<class... AN>
auto rxcpp::operators::skip_while (AN &&... an) -> operator_factory< skip_while_tag, AN... >
 Discards the first items fulfilling the predicate from this observable emit them from the new observable that is returned. More...
 

Detailed Description

Discards the first items fulfilling the predicate from this observable emit them from the new observable that is returned.

Template Parameters
Predicatethe type of the predicate
Parameters
tthe predicate
Returns
An observable that discards the first items until condition emitted by the source Observable is not fulfilling the predicate, or all of the items from the source observable if the predicate never returns false
Sample Code
auto values = rxcpp::observable<>::range(1, 8).
skip_while([](int v){
return v <= 4;
});
values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
OnNext: 5
OnNext: 6
OnNext: 7
OnNext: 8
OnCompleted

Macro Definition Documentation

◆ RXCPP_OPERATORS_RX_SKIP_WHILE_HPP

#define RXCPP_OPERATORS_RX_SKIP_WHILE_HPP