plugify 1.2.6
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 pointer = T *
 
using const_pointer = const T *
 
using reference = T &
 
using const_reference = const 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 pointer allocate (size_type n, std::allocator_traits< allocator< void > >::const_pointer hint=nullptr)
 
constexpr void deallocate (pointer p, size_type n)
 

Detailed Description

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

Definition at line 28 of file allocator.hpp.

Member Typedef Documentation

◆ const_pointer

template<typename T >
using plg::allocator< T >::const_pointer = const T*

Definition at line 32 of file allocator.hpp.

◆ const_reference

template<typename T >
using plg::allocator< T >::const_reference = const T&

Definition at line 34 of file allocator.hpp.

◆ difference_type

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

Definition at line 36 of file allocator.hpp.

◆ pointer

template<typename T >
using plg::allocator< T >::pointer = T*

Definition at line 31 of file allocator.hpp.

◆ reference

template<typename T >
using plg::allocator< T >::reference = T&

Definition at line 33 of file allocator.hpp.

◆ size_type

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

Definition at line 35 of file allocator.hpp.

◆ value_type

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

Definition at line 30 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 43 of file allocator.hpp.

Member Function Documentation

◆ allocate()

template<typename T >
constexpr pointer plg::allocator< T >::allocate ( size_type  n,
std::allocator_traits< allocator< void > >::const_pointer  hint = nullptr 
)
inlineconstexpr

Definition at line 50 of file allocator.hpp.

◆ deallocate()

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

Definition at line 82 of file allocator.hpp.


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