boost::capy::io_awaitable_promise_base::operator new

Allocate a coroutine frame.

Synopsis

static
void*
operator new(std::size_t size);

Description

Uses the thread‐local frame allocator set by run_async. Falls back to default memory resource if not set. Stores the allocator pointer at the end of each frame for correct deallocation even when TLS changes. Uses memcpy to avoid alignment requirements on the trailing pointer. Bypasses virtual dispatch for the recycling allocator.

Created with MrDocs