• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "rxcpp/rx.hpp"
2 
3 #include "rxcpp/rx-test.hpp"
4 #include "catch.hpp"
5 
6 SCENARIO("element_at sample"){
7     printf("//! [element_at sample]\n");
8     auto values = rxcpp::observable<>::range(1, 7).element_at(3);
9     values.
10         subscribe(
__anon8d0357d20102(int v)11             [](int v){printf("OnNext: %d\n", v);},
__anon8d0357d20202()12             [](){printf("OnCompleted\n");});
13     printf("//! [element_at sample]\n");
14 }
15