13#include <rpp/operators/lift.hpp>
14#include <rpp/operators/details/subscriber_with_state.hpp>
15#include <rpp/operators/fwd/take.hpp>
16#include <rpp/subscribers/constraints.hpp>
17#include <rpp/utils/functors.hpp>
19IMPLEMENTATION_FILE(take_tag);
35 subscriber.on_next(std::forward<
decltype(value)>(value));
39 subscriber.on_completed();
43template<constra
int::decayed_type Type>
48 template<constra
int::subscriber_of_type<Type> TSub>
49 auto operator()(TSub&& subscriber)
const
51 auto subscription = subscriber.get_subscription();
53 return create_subscriber_with_dynamic_state<Type>(std::move(subscription),
55 utils::forwarding_on_error{},
56 utils::forwarding_on_completed{},
57 std::forward<TSub>(subscriber),
Definition: constraints.hpp:19