25 template <
class E,
class... VN>
26 class any_single_sender {
31 template <
class Wrapped>
48 template <
class Wrapped>
69 template <
class Wrapped>
77 static_cast<Wrapped
const*
>((
void*)src.
buffer_)->~Wrapped();
81 *static_cast<Wrapped*>((
void*)src.
buffer_))};
92 template <
class T,
class U = std::decay_t<T>>
130 template <
class E,
class... VN>
134 template <
class SF,
class EXF>
152 lazy::Invocable<SF&, Out>))
185 lazy::Invocable<DSF&, Data&, Out>))
205 auto operator()(SF sf)
const {
211 auto operator()(SF sf, EXF exf)
const {
216 auto operator()(
Data d)
const {
220 (
requires Sender<Data, is_single<>>)
221 auto operator()(
Data d, DSF sf)
const {
225 (
requires Sender<Data, is_single<>>&& Invocable<DEXF&, Data&>)
226 auto operator()(
Data d, DSF sf, DEXF exf)
const {
234 #if __cpp_deduction_guides >= 201703 251 (
requires Sender<Data, is_single<>>)
255 (
requires Sender<Data, is_single<>> && Invocable<DEXF&, Data&>)
static void s_op(data &, data *)
constexpr single_sender(Data data, DSF sf, DEXF exf)
any_executor< E >(* executor_)(data &)
char buffer_[sizeof(std::tuple< VN... >)]
static constexpr vtable const noop_
std::enable_if_t< PropertySet< __properties_t< property_set_traits< T >>>, __properties_t< property_set_traits< T >>> properties_t
constexpr detail::Map< Move > move
—— Concurrent Priority Queue Implementation ——
static constexpr bool insitu()
requires E e noexcept(noexcept(s.error(std::move(e))))
requires PUSHMI_EXP(lazy::Receiver< Out > PUSHMI_AND lazy::Invocable< SF &, Out >)) void submit(Out out)
any_executor< E > executor()
PUSHMI_INLINE_VAR constexpr __adl::get_executor_fn executor
typename std::enable_if_t< PropertySet< PS0 > &&PropertySet< PS1 >, detail::property_set_insert< PS0, PS1 >>::type property_set_insert_t
bool_constant< true > true_type
requires PUSHMI_EXP(lazy::Receiver< Out > PUSHMI_AND lazy::Invocable< DSF &, Data &, Out >)) void submit(Out out)
static void s_submit(data &, any_receiver< E, VN... >)
std::enable_if_t<!std::is_same< U, any_single_sender >::value, U > wrapped_t
any_single_sender(Wrapped obj, std::false_type)
constexpr auto data(C &c) -> decltype(c.data())
any_single_sender()=default
constexpr single_sender(SF sf, EXF exf)
static const char *const value
#define PUSHMI_INLINE_VAR
std::integral_constant< bool, B > bool_
requires requires(detail::apply_impl(std::declval< F >(), std::declval< Tuple >(), detail::tupidxs< Tuple >{}))) const expr decltype(auto) apply(F &&f
void(* submit_)(data &, any_receiver< E, VN... >)
T exchange(T &obj, U &&new_value)
PUSHMI_TEMPLATE(class E=std::exception_ptr, class Wrapped)(requires Sender< detail
constexpr single_sender(SF sf)
requires SenderTo< wrapped_t< Wrapped >, any_receiver< E, VN... > > any_single_sender(Wrapped obj) noexcept(insitu< Wrapped >())
bool_constant< false > false_type
#define PUSHMI_TYPE_CONSTRAINT(...)
union folly::pushmi::any_single_sender::data data_
constexpr single_sender(Data data, DSF sf)
void swap(SwapTrackingAlloc< T > &, SwapTrackingAlloc< T > &)
constexpr single_sender(Data data)
void submit(any_receiver< E, VN... > out)
#define PUSHMI_BROKEN_SUBSUMPTION(...)
property_set_insert_t< properties_t< Data >, property_set< is_sender<>, is_single<>>> properties
any_single_sender(any_single_sender &&that) noexcept
void(* op_)(data &, data *)
any_single_sender(Wrapped obj, std::true_type) noexcept
any_single_sender & operator=(any_single_sender &&that) noexcept
PUSHMI_INLINE_VAR constexpr struct folly::pushmi::make_single_sender_fn make_single_sender
static any_executor< E > s_executor(data &)