Determine whether two Observables emit the same sequence of items.
- Template Parameters
-
OtherSource | the type of the other observable. |
BinaryPredicate | the type of the value comparing function (optional). The signature should be equivalent to the following: bool pred(const T1& a, const T2& b); |
Coordination | the type of the scheduler (optional). |
- Parameters
-
t | the other Observable that emits items to compare. |
pred | the function that implements comparison of two values (optional). |
cn | the 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
values.
[](bool v){ printf("OnNext: %s\n", v ? "true" : "false"); },
[](){ printf("OnCompleted\n");} );