PoolingAllocator< Value > Class Template Reference

STL Allocator that uses Squid memory pools for memory management. More...

#include <PoolingAllocator.h>

Public Types

using value_type = Value
 

Public Member Functions

 PoolingAllocator () noexcept
 
template<class Other >
 PoolingAllocator (const PoolingAllocator< Other > &) noexcept
 
value_typeallocate (std::size_t n)
 
void deallocate (value_type *vp, std::size_t n) noexcept
 

Detailed Description

template<class Value>
class PoolingAllocator< Value >

Definition at line 16 of file PoolingAllocator.h.

Member Typedef Documentation

◆ value_type

template<class Value>
using PoolingAllocator< Value >::value_type = Value

Definition at line 20 of file PoolingAllocator.h.

Constructor & Destructor Documentation

◆ PoolingAllocator() [1/2]

template<class Value>
PoolingAllocator< Value >::PoolingAllocator ( )
inlinenoexcept

Definition at line 21 of file PoolingAllocator.h.

◆ PoolingAllocator() [2/2]

template<class Value>
template<class Other >
PoolingAllocator< Value >::PoolingAllocator ( const PoolingAllocator< Other > &  )
inlinenoexcept

Definition at line 22 of file PoolingAllocator.h.

Member Function Documentation

◆ allocate()

template<class Value>
value_type* PoolingAllocator< Value >::allocate ( std::size_t  n)
inline

Definition at line 23 of file PoolingAllocator.h.

References memAllocRigid().

◆ deallocate()

template<class Value>
void PoolingAllocator< Value >::deallocate ( value_type vp,
std::size_t  n 
)
inlinenoexcept

Definition at line 24 of file PoolingAllocator.h.

References memFreeRigid().


The documentation for this class was generated from the following file:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors