1 #include "rxcpp/rx.hpp" 2 3 #include "rxcpp/rx-test.hpp" 4 #include "catch.hpp" 5 6 SCENARIO("is_empty sample") { 7 printf("//! [is_empty sample]\n"); 8 auto values = rxcpp::observable<>::from(1, 2, 3, 4, 5).is_empty(); 9 values. 10 subscribe( __anon1e3a18790102(bool v) 11 [](bool v) { printf("OnNext: %s\n", v ? "true" : "false"); }, __anon1e3a18790202() 12 []() { printf("OnCompleted\n"); }); 13 printf("//! [is_empty sample]\n"); 14 } 15