Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
TrackingAllocator< T > Struct Template Reference

#include <MemoryTracker.h>

Public Types

using value_type = T

Public Member Functions

 TrackingAllocator ()=default
template<typename U>
 TrackingAllocator (const TrackingAllocator< U > &) noexcept
T * allocate (std::size_t n)
void deallocate (T *ptr, std::size_t)
template<typename U>
bool operator== (const TrackingAllocator< U > &) const noexcept
template<typename U>
bool operator!= (const TrackingAllocator< U > &) const noexcept

Member Typedef Documentation

◆ value_type

template<typename T>
using TrackingAllocator< T >::value_type = T

Constructor & Destructor Documentation

◆ TrackingAllocator() [1/2]

template<typename T>
TrackingAllocator< T >::TrackingAllocator ( )
default

◆ TrackingAllocator() [2/2]

template<typename T>
template<typename U>
TrackingAllocator< T >::TrackingAllocator ( const TrackingAllocator< U > & )
inlinenoexcept

Member Function Documentation

◆ allocate()

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

◆ deallocate()

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

◆ operator!=()

template<typename T>
template<typename U>
bool TrackingAllocator< T >::operator!= ( const TrackingAllocator< U > & ) const
inlinenoexcept

◆ operator==()

template<typename T>
template<typename U>
bool TrackingAllocator< T >::operator== ( const TrackingAllocator< U > & ) const
inlinenoexcept

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