|
Blender V4.5
|
#include <BLI_memory_utils.hh>
Public Member Functions | |
| operator T* () | |
| operator const T * () const | |
| T & | operator* () |
| const T & | operator* () const |
| T * | ptr () |
| const T * | ptr () const |
| T & | ref () |
| const T & | ref () const |
This can be used to reserve memory for C++ objects whose lifetime is different from the lifetime of the object they are embedded in. It's used by containers with small buffer optimization and hash table implementations.
Definition at line 155 of file BLI_memory_utils.hh.
|
inline |
Definition at line 187 of file BLI_memory_utils.hh.
|
inline |
Definition at line 182 of file BLI_memory_utils.hh.
|
inline |
Definition at line 192 of file BLI_memory_utils.hh.
|
inline |
Definition at line 197 of file BLI_memory_utils.hh.
|
inline |
Definition at line 202 of file BLI_memory_utils.hh.
Referenced by blender::tests::TEST().
|
inline |
Definition at line 207 of file BLI_memory_utils.hh.
|
inline |
Definition at line 212 of file BLI_memory_utils.hh.
Referenced by blender::HashedSetSlot< std::string >::remove(), blender::IntrusiveMapSlot< Key *, Value, PointerKeyInfo< Key * > >::remove(), blender::SimpleMapSlot< Key, Value >::remove(), blender::SimpleSetSlot< Key >::remove(), and blender::SimpleMapSlot< Key, Value >::SimpleMapSlot().
|
inline |
Definition at line 217 of file BLI_memory_utils.hh.