28
28
#include < type_traits>
29
29
#include < utility>
30
30
31
-
32
31
#include < beman/execution/detail/suppress_push.hpp>
33
32
namespace beman ::execution::detail {
34
33
35
34
struct bulk_t {
36
35
37
-
38
36
template <class Sender , class Shape , class f >
39
37
requires (::beman::execution::sender<Sender> && std::is_integral_v<Shape> &&
40
38
::beman::execution::detail::movable_value<f>)
@@ -56,8 +54,8 @@ struct impls_for<bulk_t> : ::beman::execution::detail::default_impls {
56
54
Index, State& state, Rcvr& rcvr, Tag, Args&&... args) noexcept -> void
57
55
requires (not ::std::same_as<Tag, set_value_t > ||
58
56
requires (State& s, Args&&... a) {
59
- (s.template get <1 >())(s.template get <0 >(), ::std::forward<Args>(a)...);
60
- })
57
+ (s.template get <1 >())(s.template get <0 >(), ::std::forward<Args>(a)...);
58
+ })
61
59
{
62
60
if constexpr (std::same_as<Tag, set_value_t >) {
63
61
auto & [shape, f] = state;
@@ -98,20 +96,19 @@ struct completion_signatures_for_impl<
98
96
using make_error_completions =
99
97
::beman::execution::completion_signatures<::beman::execution::set_error_t (const std::decay_t <Args>&)...>;
100
98
101
- // Retrieves the value completion signatures from the Sender using Env,
99
+ // Retrieves the value completion signatures from the Sender using Env,
102
100
// then applies `make_value_completions` to format them and merges all signatures.
103
101
using value_completions = ::beman::execution::
104
102
value_types_of_t <Sender, Env, make_value_completions, ::beman::execution::detail::meta::combine>;
105
103
106
- // Retrieves the error completion signatures from the Sender using Env,
104
+ // Retrieves the error completion signatures from the Sender using Env,
107
105
// then applies make_error_completions to format them.
108
106
using error_completions = ::beman::execution::error_types_of_t <Sender, Env, make_error_completions>;
109
107
110
108
using fixed_completions =
111
109
::beman::execution::completion_signatures<::beman::execution::set_stopped_t (),
112
110
::beman::execution::set_error_t (std::exception_ptr)>;
113
111
114
-
115
112
using type = ::beman::execution::detail::meta::unique<
116
113
::beman::execution::detail::meta::combine<fixed_completions, value_completions, error_completions>>;
117
114
};
0 commit comments