boost::capy::recycling_memory_resource::do_allocate

Allocate through the std::pmr::memory_resource interface.

Synopsis

virtual
void*
do_allocate(
    std::size_t bytes,
    std::size_t alignment) override;

Description

Forwards to allocate_fast, so it has that function's contract. Call allocate_fast directly to skip the virtual dispatch.

Exceptions

Name

Thrown on

std::bad_alloc

If the underlying ::operator new fails.

Return Value

A pointer to a block of at least bytes bytes.

Parameters

Name

Description

bytes

The number of bytes to allocate.

alignment

The requested alignment. It is ignored.

Created with MrDocs