A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
Kinoko::EGG::Allocator< T > Struct Template Reference

Description

template<typename T>
struct Kinoko::EGG::Allocator< T >

Definition at line 8 of file Allocator.hh.

Public Types

using value_type = T

Public Member Functions

template<typename U>
constexpr Allocator (const Allocator< U > &) noexcept
T * allocate (size_t n)
void deallocate (T *ptr, size_t) noexcept

Member Typedef Documentation

◆ value_type

template<typename T>
using Kinoko::EGG::Allocator< T >::value_type = T

Definition at line 9 of file Allocator.hh.

Constructor & Destructor Documentation

◆ Allocator()

template<typename T>
template<typename U>
Kinoko::EGG::Allocator< T >::Allocator ( const Allocator< U > & )
inlineconstexprnoexcept

Definition at line 13 of file Allocator.hh.

Member Function Documentation

◆ allocate()

template<typename T>
T * Kinoko::EGG::Allocator< T >::allocate ( size_t n)
inlinenodiscard

Definition at line 15 of file Allocator.hh.

◆ deallocate()

template<typename T>
void Kinoko::EGG::Allocator< T >::deallocate ( T * ptr,
size_t  )
inlinenoexcept

Definition at line 19 of file Allocator.hh.