AllocatorFlags#

class AllocatorFlags#

Flags for allocators.

Fields#

class AllocatorFlags
CUSTOM_ALLOC#

The allocator has a custom alloc function. Only elements designed to work with this allocator should be using it, other elements should ignore it from allocation propositions. This implies NO_COPY.

LAST#

First flag that can be used for custom purposes

NO_COPY#

When copying a Memory allocated with this allocator, the copy will instead be allocated using the default allocator. Use this when allocating a new memory is an heavy opperation that should only be done with a BufferPool for example.

Added in version 1.24.