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

Determine whether two Observables emit the same sequence of items. More...

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

Namespaces

 rxcpp
 
 rxcpp::operators
 

Macros

#define RXCPP_OPERATORS_RX_SEQUENCE_EQUAL_HPP
 

Functions

template<class... AN>
auto rxcpp::operators::sequence_equal (AN &&...an) -> operator_factory< sequence_equal_tag, AN... >
 Determine whether two Observables emit the same sequence of items. More...
 

Detailed Description

Determine whether two Observables emit the same sequence of items.

Template Parameters
OtherSourcethe type of the other observable.
BinaryPredicatethe type of the value comparing function (optional). The signature should be equivalent to the following: bool pred(const T1& a, const T2& b);
Coordinationthe type of the scheduler (optional).
Parameters
tthe other Observable that emits items to compare.
predthe function that implements comparison of two values (optional).
cnthe scheduler (optional).
Returns
Observable that emits true only if both sequences terminate normally after emitting the same sequence of items in the same order; otherwise it will emit false.
Sample Code
auto source = rxcpp::observable<>::range(1, 3);
auto values = source.sequence_equal(rxcpp::observable<>::range(1, 3));
values.
[](bool v){ printf("OnNext: %s\n", v ? "true" : "false"); },
[](){ printf("OnCompleted\n");} );
OnNext: true
OnCompleted

Macro Definition Documentation

#define RXCPP_OPERATORS_RX_SEQUENCE_EQUAL_HPP