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

Function __mk_obj_using_alloc_fn

include/stdexec/__detail/__memory.hpp:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 // __allocator_aware_forward: https://eel.is/c++draft/exec#snd.expos-49
96 template <class _Alloc>
97 [[nodiscard]]
98 constexpr auto __mk_obj_using_alloc_fn(_Alloc const &__alloc) noexcept
99 {
100 return [&__alloc]<class... _Args>(_Args &&...__args)
101 {
102 return __tuple{
103 std::make_obj_using_allocator<__decay_t<_Args>>(__alloc, static_cast<_Args &&>(__args))...};
104 };
105 }
106
107 template <class _Ty, class _Context>
108 [[nodiscard]]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected