diff options
Diffstat (limited to 'Rx/v2/examples/doxygen/exists.cpp')
-rw-r--r-- | Rx/v2/examples/doxygen/exists.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/Rx/v2/examples/doxygen/exists.cpp b/Rx/v2/examples/doxygen/exists.cpp deleted file mode 100644 index 6e4d249..0000000 --- a/Rx/v2/examples/doxygen/exists.cpp +++ /dev/null @@ -1,29 +0,0 @@ -#include "rxcpp/rx.hpp" - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" - -SCENARIO("exists sample") { - printf("//! [exists sample]\n"); - auto values = rxcpp::observable<>::from(1, 2, 3, 4, 5).exists([](int n) { return n > 3; }); - values. - subscribe( - [](bool v) { printf("OnNext: %s\n", v ? "true" : "false"); }, - []() { printf("OnCompleted\n"); }); - printf("//! [exists sample]\n"); -} - -SCENARIO("exists - operator syntax sample") { - using namespace rxcpp; - using namespace rxcpp::sources; - using namespace rxcpp::operators; - - printf("//! [exists - operator syntax sample]\n"); - auto values = range(1, 10) - | exists([](int n) { return n == 1; }); - values. - subscribe( - [](bool v) { printf("OnNext: %s\n", v ? "true" : "false"); }, - []() { printf("OnCompleted\n"); }); - printf("//! [exists - operator syntax sample]\n"); -}
\ No newline at end of file |