plugify 1.2.8
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
plg::allocator< T > Class Template Reference

Classes

struct  rebind
 

Public Types

using value_type = T
 
using size_type = std::size_t
 
using difference_type = std::ptrdiff_t
 

Public Member Functions

template<class U >
constexpr allocator (const allocator< U > &) noexcept
 
constexpr T * allocate (size_type n)
 
constexpr void deallocate (T *p, size_type n)
 

Detailed Description

template<typename T>
class plg::allocator< T >

Definition at line 24 of file allocator.hpp.

Member Typedef Documentation

◆ difference_type

template<typename T >
using plg::allocator< T >::difference_type = std::ptrdiff_t

Definition at line 30 of file allocator.hpp.

◆ size_type

template<typename T >
using plg::allocator< T >::size_type = std::size_t

Definition at line 29 of file allocator.hpp.

◆ value_type

template<typename T >
using plg::allocator< T >::value_type = T

Definition at line 28 of file allocator.hpp.

Constructor & Destructor Documentation

◆ allocator()

template<typename T >
template<class U >
constexpr plg::allocator< T >::allocator ( const allocator< U > &  )
inlineconstexprnoexcept

Definition at line 35 of file allocator.hpp.

Member Function Documentation

◆ allocate()

template<typename T >
constexpr T * plg::allocator< T >::allocate ( size_type  n)
inlineconstexpr

Definition at line 40 of file allocator.hpp.

◆ deallocate()

template<typename T >
constexpr void plg::allocator< T >::deallocate ( T *  p,
size_type  n 
)
inlineconstexpr

Definition at line 56 of file allocator.hpp.


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