CbmRoot
Loading...
Searching...
No Matches
cbm::algo::PODAllocator< T > Class Template Reference

Allocator for plain old data types. More...

#include <PODAllocator.h>

Public Types

using value_type = T
 

Public Member Functions

T * allocate (size_t size)
 
void deallocate (T *p_t, size_t)
 
template<class... Args>
void construct (T *obj, Args &&... args)
 
bool operator== (const PODAllocator &) const
 
bool operator!= (const PODAllocator &) const
 

Detailed Description

template<class T>
class cbm::algo::PODAllocator< T >

Allocator for plain old data types.

Custom allocator for plain old data types (POD) that does not initialize the allocated memory.

Definition at line 19 of file PODAllocator.h.

Member Typedef Documentation

◆ value_type

template<class T >
using cbm::algo::PODAllocator< T >::value_type = T

Definition at line 27 of file PODAllocator.h.

Member Function Documentation

◆ allocate()

template<class T >
T * cbm::algo::PODAllocator< T >::allocate ( size_t size)
inline

Definition at line 29 of file PODAllocator.h.

References size().

◆ construct()

template<class T >
template<class... Args>
void cbm::algo::PODAllocator< T >::construct ( T * obj,
Args &&... args )
inline

Definition at line 33 of file PODAllocator.h.

◆ deallocate()

template<class T >
void cbm::algo::PODAllocator< T >::deallocate ( T * p_t,
size_t  )
inline

Definition at line 30 of file PODAllocator.h.

◆ operator!=()

template<class T >
bool cbm::algo::PODAllocator< T >::operator!= ( const PODAllocator< T > & ) const
inline

Definition at line 40 of file PODAllocator.h.

◆ operator==()

template<class T >
bool cbm::algo::PODAllocator< T >::operator== ( const PODAllocator< T > & ) const
inline

Definition at line 39 of file PODAllocator.h.


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