SuperDex Physics C++ API
Loading...
Searching...
No Matches
superdex::StlAllocator< T > Class Template Reference

#include <stl_allocator.h>

Public Types

using value_type = T

Public Member Functions

T * allocate (std::size_t n)
void deallocate (T *ptr, std::size_t n)
Allocatorget_allocator () const
 StlAllocator ()=default
 StlAllocator (Allocator *alloc)
template<typename U>
 StlAllocator (StlAllocator< U > const &other)

Friends

bool operator!= (StlAllocator const &a, StlAllocator const &b)
bool operator== (StlAllocator const &a, StlAllocator const &b)

Detailed Description

template<typename T>
class superdex::StlAllocator< T >

Definition at line 27 of file stl_allocator.h.

Member Typedef Documentation

◆ value_type

template<typename T>
using superdex::StlAllocator< T >::value_type = T

Definition at line 29 of file stl_allocator.h.

Constructor & Destructor Documentation

◆ StlAllocator() [1/3]

template<typename T>
superdex::StlAllocator< T >::StlAllocator ( )
default

◆ StlAllocator() [2/3]

template<typename T>
superdex::StlAllocator< T >::StlAllocator ( Allocator * alloc)
inline

Definition at line 35 of file stl_allocator.h.

◆ StlAllocator() [3/3]

template<typename T>
template<typename U>
superdex::StlAllocator< T >::StlAllocator ( StlAllocator< U > const & other)
inline

Definition at line 38 of file stl_allocator.h.

Member Function Documentation

◆ allocate()

template<typename T>
T * superdex::StlAllocator< T >::allocate ( std::size_t n)
inline

Definition at line 40 of file stl_allocator.h.

◆ deallocate()

template<typename T>
void superdex::StlAllocator< T >::deallocate ( T * ptr,
std::size_t n )
inline

Definition at line 44 of file stl_allocator.h.

◆ get_allocator()

template<typename T>
Allocator * superdex::StlAllocator< T >::get_allocator ( ) const
inline

Definition at line 48 of file stl_allocator.h.

◆ operator!=

template<typename T>
bool operator!= ( StlAllocator< T > const & a,
StlAllocator< T > const & b )
friend

Definition at line 56 of file stl_allocator.h.

◆ operator==

template<typename T>
bool operator== ( StlAllocator< T > const & a,
StlAllocator< T > const & b )
friend

Definition at line 52 of file stl_allocator.h.


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