25 template <
class E,
class... VN>
26 class any_many_sender {
31 template <
class Wrapped>
48 template <
class Wrapped>
69 template <
class Wrapped>
76 static_cast<Wrapped
const*
>((
void*)src.
buffer_)->~Wrapped();
80 *static_cast<Wrapped*>((
void*)src.
buffer_))};
91 template <
class T,
class U = std::decay_t<T>>
128 template <
class E,
class... VN>
132 template <
class SF,
class EXF>
150 lazy::Invocable<SF&, Out>))
156 template <PUSHMI_TYPE_CONSTRAINT(Sender<is_many<>>) Data,
class DSF,
class DEXF>
180 lazy::Invocable<DSF&, Data&, Out>))
200 auto operator()(SF sf)
const {
205 auto operator()(SF sf, EXF exf)
const {
210 auto operator()(
Data d)
const {
215 auto operator()(
Data d, DSF sf)
const {
219 (
requires Sender<Data, is_many<>> && Invocable<DEXF&, Data&>)
220 auto operator()(
Data d, DSF sf, DEXF exf)
const {
227 #if __cpp_deduction_guides >= 201703 247 (
requires Sender<Data, is_many<>> && Invocable<DEXF&, Data&>)
static void s_op(data &, data *)
any_many_sender & operator=(any_many_sender &&that) noexcept
any_many_sender(any_many_sender &&that) noexcept
property_set_insert_t< properties_t< Data >, property_set< is_sender<>, is_many<>>> properties
std::enable_if_t< PropertySet< __properties_t< property_set_traits< T >>>, __properties_t< property_set_traits< T >>> properties_t
constexpr detail::Map< Move > move
constexpr many_sender(Data data, DSF sf)
constexpr many_sender(Data data)
any_many_sender(Wrapped obj, std::true_type) noexcept
—— Concurrent Priority Queue Implementation ——
void submit(any_receiver< E, VN... > out)
void(* submit_)(data &, any_receiver< E, VN... >)
requires E e noexcept(noexcept(s.error(std::move(e))))
any_executor< E > executor()
requires PUSHMI_EXP(lazy::Receiver< Out > PUSHMI_AND lazy::Invocable< DSF &, Data &, Out >)) void submit(Out out)
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
std::enable_if_t<!std::is_same< U, any_many_sender >::value, U > wrapped_t
static constexpr vtable const noop_
PUSHMI_INLINE_VAR constexpr struct folly::pushmi::make_many_sender_fn make_many_sender
constexpr auto data(C &c) -> decltype(c.data())
static any_executor< E > s_executor(data &)
any_many_sender(Wrapped obj, std::false_type)
any_many_sender()=default
static const char *const value
union folly::pushmi::any_many_sender::data data_
#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
constexpr many_sender(SF sf, EXF exf)
T exchange(T &obj, U &&new_value)
PUSHMI_TEMPLATE(class E=std::exception_ptr, class Wrapped)(requires Sender< detail
static void s_submit(data &, any_receiver< E, VN... >)
requires SenderTo< wrapped_t< Wrapped >, any_receiver< E, VN... >, is_many<> > any_many_sender(Wrapped obj) noexcept(insitu< Wrapped >())
bool_constant< false > false_type
any_executor< E >(* executor_)(data &)
void(* op_)(data &, data *)
void swap(SwapTrackingAlloc< T > &, SwapTrackingAlloc< T > &)
static constexpr bool insitu()
constexpr many_sender(Data data, DSF sf, DEXF exf)
#define PUSHMI_BROKEN_SUBSUMPTION(...)
requires PUSHMI_EXP(lazy::Receiver< Out > PUSHMI_AND lazy::Invocable< SF &, Out >)) void submit(Out out)
constexpr many_sender(SF sf)
char buffer_[sizeof(std::tuple< VN... >)]