1 #include "rxcpp/rx.hpp" 2 3 #include "rxcpp/rx-test.hpp" 4 #include "catch.hpp" 5 6 SCENARIO("ignore_elements sample"){ 7 printf("//! [ignore_elements sample]\n"); 8 auto values = rxcpp::observable<>::from(1, 2, 3, 4, 5).ignore_elements(); 9 values. 10 subscribe( __anona5466fef0102(int v) 11 [](int v) { printf("OnNext: %d\n", v); }, __anona5466fef0202() 12 []() { printf("OnCompleted\n"); }); 13 printf("//! [ignore_elements sample]\n"); 14 } 15 16