libcoro
1.0
Coroutine support library for C++20
|
Creates libcoro
compatible allocator which uses an instance of std::pmr::memory_resource for allocations.
More...
#include <allocator.h>
Creates libcoro
compatible allocator which uses an instance of std::pmr::memory_resource for allocations.
Res | pointer to memory resource, it can be also any smart pointer which acts as pointer (defines ->). You can use std::shared_ptr which causes that memory resource is automatically released when last coroutine is finished |
Definition at line 189 of file allocator.h.