Blender V4.3
BLI_pool.hh File Reference
#include "BLI_stack.hh"
#include "BLI_utility_mixins.hh"
#include "BLI_vector.hh"

Go to the source code of this file.

Classes

class  blender::Pool< T, ChunkLen >
 

Namespaces

namespace  blender
 

Detailed Description

A blender::Pool allows fast allocation and deallocation of many elements of the same type.

It is compatible with types that are not movable.

Freed elements memory will be reused by next allocations. Elements are allocated in chunks to reduce memory fragmentation and avoid reallocation.

Definition in file BLI_pool.hh.