boost::capy::execution_context::set_frame_allocator

set_frame_allocator overloads

Synopses

Set the memory resource used for coroutine frame allocation.

void
set_frame_allocator(std::pmr::memory_resource* mr) noexcept;

Set the frame allocator from a standard Allocator.

template<class Allocator>
requires (!std::is_pointer_v<Allocator>)
void
set_frame_allocator(Allocator const& a);

Template Parameters

Name Description

Allocator

The allocator type satisfying the standard Allocator requirements.

Parameters

Name Description

mr

Pointer to the memory resource.

a

The allocator to use.

See Also

get_frame_allocator

Created with MrDocs