STL Allocator that uses Squid memory pools for memory management. More...
#include <PoolingAllocator.h>
Classes | |
struct | rebind |
Public Types | |
using | value_type = Value |
using | size_type = size_t |
using | pointer = Value * |
using | const_pointer = const Value * |
using | reference = Value & |
using | const_reference = const Value & |
Public Member Functions | |
PoolingAllocator () noexcept | |
template<class Other > | |
PoolingAllocator (const PoolingAllocator< Other > &) noexcept | |
value_type * | allocate (std::size_t n) |
void | deallocate (value_type *vp, std::size_t n) noexcept |
template<class U , class ... Args> | |
void | construct (U *p, Args &&... args) |
template<typename OtherValue > | |
void | destroy (OtherValue *p) |
Detailed Description
template<class Value>
class PoolingAllocator< Value >
Definition at line 16 of file PoolingAllocator.h.
Member Typedef Documentation
◆ const_pointer
using PoolingAllocator< Value >::const_pointer = const Value* |
Definition at line 33 of file PoolingAllocator.h.
◆ const_reference
using PoolingAllocator< Value >::const_reference = const Value& |
Definition at line 35 of file PoolingAllocator.h.
◆ pointer
using PoolingAllocator< Value >::pointer = Value* |
Definition at line 32 of file PoolingAllocator.h.
◆ reference
using PoolingAllocator< Value >::reference = Value& |
Definition at line 34 of file PoolingAllocator.h.
◆ size_type
using PoolingAllocator< Value >::size_type = size_t |
Definition at line 31 of file PoolingAllocator.h.
◆ value_type
using PoolingAllocator< Value >::value_type = Value |
Definition at line 20 of file PoolingAllocator.h.
Constructor & Destructor Documentation
◆ PoolingAllocator() [1/2]
|
inlinenoexcept |
Definition at line 21 of file PoolingAllocator.h.
◆ PoolingAllocator() [2/2]
|
inlinenoexcept |
Definition at line 22 of file PoolingAllocator.h.
Member Function Documentation
◆ allocate()
|
inline |
Definition at line 23 of file PoolingAllocator.h.
References memAllocRigid().
◆ construct()
|
inline |
Definition at line 42 of file PoolingAllocator.h.
◆ deallocate()
|
inlinenoexcept |
Definition at line 24 of file PoolingAllocator.h.
References memFreeRigid().
◆ destroy()
|
inline |
Definition at line 43 of file PoolingAllocator.h.
The documentation for this class was generated from the following file:
- src/mem/PoolingAllocator.h