Returns an Observable that emits true if any item emitted by the source Observable satisfies a specified condition, otherwise false. Emits false if the source Observable terminates without emitting any item.
More...
Go to the source code of this file.
|
template<class... AN> |
auto | rxcpp::operators::any (AN &&...an) -> operator_factory< any_tag, AN... > |
| Returns an Observable that emits true if any item emitted by the source Observable satisfies a specified condition, otherwise false. Emits false if the source Observable terminates without emitting any item. More...
|
|
template<class... AN> |
auto | rxcpp::operators::exists (AN &&...an) -> operator_factory< exists_tag, AN... > |
| Returns an Observable that emits true if any item emitted by the source Observable satisfies a specified condition, otherwise false. Emits false if the source Observable terminates without emitting any item. More...
|
|
template<class... AN> |
auto | rxcpp::operators::contains (AN &&...an) -> operator_factory< contains_tag, AN... > |
| Returns an Observable that emits true if the source Observable emitted a specified item, otherwise false. Emits false if the source Observable terminates without emitting any item. More...
|
|
Returns an Observable that emits true if any item emitted by the source Observable satisfies a specified condition, otherwise false. Emits false if the source Observable terminates without emitting any item.
- Template Parameters
-
Predicate | the type of the test function. |
- Parameters
-
p | the test function to test items emitted by the source Observable. |
- Returns
- An observable that emits true if any item emitted by the source observable satisfies a specified condition, otherwise false.
Some basic any- operators have already been implemented:
- Sample Code
values.
[](bool v) { printf("OnNext: %s\n", v ? "true" : "false"); },
[]() { printf("OnCompleted\n"); });
- Sample Code
values.
[](bool v) { printf("OnNext: %s\n", v ? "true" : "false"); },
[]() { printf("OnCompleted\n"); });
#define RXCPP_OPERATORS_RX_ANY_HPP |