Loki
0.1.7
|
#include <SmallObj.h>
Additional Inherited Members | |
![]() | |
typedef AllocatorSingleton < ThreadingModel, chunkSize, maxSmallObjectSize, objectAlignSize, LifetimePolicy > | ObjAllocatorSingleton |
![]() | |
static void * | operator new (std::size_t size) throw ( std::bad_alloc ) |
Throwing single-object new throws bad_alloc when allocation fails. | |
static void * | operator new (std::size_t size, const std::nothrow_t &) throw () |
Non-throwing single-object new returns NULL if allocation fails. | |
static void * | operator new (std::size_t size, void *place) |
Placement single-object new merely calls global placement new. | |
static void | operator delete (void *p, std::size_t size) throw () |
Single-object delete. | |
static void | operator delete (void *p, const std::nothrow_t &) throw () |
static void | operator delete (void *p, void *place) |
Placement single-object delete merely calls global placement delete. | |
SmallValueObject Base class for small objects with value-type semantics - offers fast allocations & deallocations. Destructor is non-virtual, inline, and protected to prevent unintentional destruction through base class. Default constructor is trivial. Copy-constructor and copy-assignment operator are trivial since value-types almost always need those operations. Class has no data members so compilers can use Empty-Base-Optimization.