Replacement for std::pmr::monotonic_buffer_resource
, which sadly is not available on all platforms CAF currently supports.
More...
#include <monotonic_buffer_resource.hpp>
|
void | release () |
| Release all allocated memory to the OS even if no destructors were called for the allocated objects.
|
|
void | reclaim () |
| Reclaims all allocated memory (re-using it) even if no destructors were called for the allocated objects.
|
|
void * | allocate (size_t bytes, size_t alignment=alignof(max_align_t)) |
| Allocates memory.
|
|
constexpr void | deallocate (void *, size_t, size_t=alignof(max_align_t)) |
| Fancy no-op.
|
|
size_t | blocks (size_t alloc_size) |
| Counts how many blocks currently exist in the bucket for alloc_size .
|
|
size_t | blocks () |
| Counts how many blocks currently exist in total.
|
|
Replacement for std::pmr::monotonic_buffer_resource
, which sadly is not available on all platforms CAF currently supports.
This resource does not support upstream resources and instead always uses malloc
and free
.
The documentation for this class was generated from the following files:
- libcaf_core/caf/detail/monotonic_buffer_resource.hpp
- libcaf_core/caf/detail/monotonic_buffer_resource.cpp