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

Method allocate

test/stdexec/detail/test_any.cpp:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 {}
44
45 [[nodiscard]]
46 constexpr _Value *allocate(std::size_t n)
47 {
48 bytes_ += n * sizeof(_Value);
49 return static_cast<_Value *>(::operator new(n * sizeof(_Value)));
50 }
51
52 constexpr void deallocate(_Value *ptr, std::size_t n) noexcept
53 {

Callers

nothing calls this directly

Calls 1

operator newFunction · 0.85

Tested by

no test coverage detected