Cogs.Foundation
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
Cogs::Memory::StdAllocator< T > Class Template Reference

#include <StdAllocator.h>

Public Types

using value_type = T
 
using pointer = T *
 
using size_type = size_t
 

Public Member Functions

 StdAllocator ()=default
 
 StdAllocator (Allocator *allocator)
 
template<typename U >
 StdAllocator (const StdAllocator< U > &other)
 
pointer allocate (size_type n)
 
void deallocate (pointer p, size_type n)
 

Private Attributes

Allocatorallocator = Allocator::defaultAllocator()
 

Friends

template<typename U >
class StdAllocator
 

Member Typedef Documentation

◆ pointer

template<typename T >
using Cogs::Memory::StdAllocator< T >::pointer = T *

◆ size_type

template<typename T >
using Cogs::Memory::StdAllocator< T >::size_type = size_t

◆ value_type

template<typename T >
using Cogs::Memory::StdAllocator< T >::value_type = T

Constructor & Destructor Documentation

◆ StdAllocator() [1/3]

template<typename T >
Cogs::Memory::StdAllocator< T >::StdAllocator ( )
default

◆ StdAllocator() [2/3]

template<typename T >
Cogs::Memory::StdAllocator< T >::StdAllocator ( Allocator allocator)
inline

◆ StdAllocator() [3/3]

template<typename T >
template<typename U >
Cogs::Memory::StdAllocator< T >::StdAllocator ( const StdAllocator< U > &  other)
inline

Member Function Documentation

◆ allocate()

template<typename T >
pointer Cogs::Memory::StdAllocator< T >::allocate ( size_type  n)
inline

◆ deallocate()

template<typename T >
void Cogs::Memory::StdAllocator< T >::deallocate ( pointer  p,
size_type  n 
)
inline

Friends And Related Function Documentation

◆ StdAllocator

template<typename T >
template<typename U >
friend class StdAllocator
friend

Member Data Documentation

◆ allocator

template<typename T >
Allocator* Cogs::Memory::StdAllocator< T >::allocator = Allocator::defaultAllocator()
private

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