Start with the supplied values, then concatenate this observable.
More...
Go to the source code of this file.
Start with the supplied values, then concatenate this observable.
- Template Parameters
-
Value0 | ... |
ValueN | the type of sending values |
- Parameters
-
- Returns
- Observable that emits the specified items and then emits the items emitted by the source observable.
- Sample Code\n
values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
OnNext: 1
OnNext: 2
OnNext: 3
OnNext: 10
OnNext: 11
OnNext: 12
OnCompleted
Another form of this operator, rxcpp::observable<void, void>::start_with, gets the source observable as a parameter:
values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
OnNext: 1
OnNext: 2
OnNext: 3
OnNext: 10
OnNext: 11
OnNext: 12
OnCompleted
◆ RXCPP_OPERATORS_RX_START_WITH_HPP
#define RXCPP_OPERATORS_RX_START_WITH_HPP |
auto range(T first=0, T last=std::numeric_limits< T >::max(), std::ptrdiff_t step=1) -> observable< T, detail::range< T, identity_one_worker >>
Definition: rx-range.hpp:119