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

Function get_allocator

include/exec/static_thread_pool.hpp:1571–1581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1569 {
1570 template <class Rcvr>
1571 auto get_allocator(Rcvr const & rcvr)
1572 {
1573 if constexpr (__callable<get_allocator_t, env_of_t<Rcvr>>)
1574 {
1575 return STDEXEC::get_allocator(STDEXEC::get_env(rcvr));
1576 }
1577 else
1578 {
1579 return std::allocator<char>{};
1580 }
1581 }
1582
1583 template <class Receiver>
1584 using allocator_of_t = decltype(get_allocator(__declval<Receiver>()));

Callers 12

test_task.cppFile · 0.85
__task.hppFile · 0.85
__mk_allocMethod · 0.85
operator()Method · 0.85
operator()Method · 0.85
__delete_Method · 0.85
operationMethod · 0.85
getMethod · 0.85

Calls 1

get_envFunction · 0.70

Tested by

no test coverage detected