MCPcopy Create free account
hub / github.com/NVIDIA/stdexec / set_value

Method set_value

include/exec/sequence/merge_each.hpp:1023–1037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1021
1022 template <class _NestedSequence>
1023 auto set_value(_NestedSequence&& __sequence) noexcept
1024 {
1025 using __receiver_t = __receive_nested_values_t<_OperationBase>;
1026 using __nested_op_t = __compute::__nested_sequence_op_t<_NestedSequence, _OperationBase>;
1027 static constexpr bool __is_nothrow =
1028 __nothrow_subscribable<_NestedSequence, __receiver_t>
1029 && STDEXEC::__nothrow_constructible_from<_NestedSeqOp, __nested_op_t>;
1030 STDEXEC_TRY
1031 {
1032 auto& __nested_seq_op = __next_seq_op_->__nested_seq_op_.__emplace_from(
1033 subscribe,
1034 static_cast<_NestedSequence&&>(__sequence),
1035 __receiver_t{__next_seq_op_, __op_});
1036 STDEXEC::start(__nested_seq_op);
1037 }
1038 STDEXEC_CATCH_ALL
1039 {
1040 if constexpr (!__is_nothrow)

Callers

nothing calls this directly

Calls 2

startFunction · 0.70
__emplace_fromMethod · 0.45

Tested by

no test coverage detected