neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::small_buffer< T, SmallBufferSize > Struct Template Reference

#include <allocator.hpp>

Public Types

typedef T value_type
 
typedef std::aligned_storage_t< sizeof(value_type) *SmallBufferSizebuffer_storage_t
 

Public Member Functions

 small_buffer ()
 
 small_buffer (const small_buffer &)
 
small_bufferoperator= (const small_buffer &)
 

Public Attributes

buffer_storage_t storage
 
bool allocated
 

Detailed Description

template<typename T, std::size_t SmallBufferSize>
struct neolib::small_buffer< T, SmallBufferSize >

Definition at line 392 of file allocator.hpp.

Member Typedef Documentation

◆ buffer_storage_t

template<typename T , std::size_t SmallBufferSize>
typedef std::aligned_storage_t<sizeof(value_type)* SmallBufferSize> neolib::small_buffer< T, SmallBufferSize >::buffer_storage_t

Definition at line 395 of file allocator.hpp.

◆ value_type

template<typename T , std::size_t SmallBufferSize>
typedef T neolib::small_buffer< T, SmallBufferSize >::value_type

Definition at line 394 of file allocator.hpp.

Constructor & Destructor Documentation

◆ small_buffer() [1/2]

template<typename T , std::size_t SmallBufferSize>
neolib::small_buffer< T, SmallBufferSize >::small_buffer ( )
inline

Definition at line 398 of file allocator.hpp.

◆ small_buffer() [2/2]

template<typename T , std::size_t SmallBufferSize>
neolib::small_buffer< T, SmallBufferSize >::small_buffer ( const small_buffer< T, SmallBufferSize > &  )
inline

Definition at line 399 of file allocator.hpp.

Member Function Documentation

◆ operator=()

template<typename T , std::size_t SmallBufferSize>
small_buffer & neolib::small_buffer< T, SmallBufferSize >::operator= ( const small_buffer< T, SmallBufferSize > &  )
inline

Definition at line 400 of file allocator.hpp.

Member Data Documentation

◆ allocated

template<typename T , std::size_t SmallBufferSize>
bool neolib::small_buffer< T, SmallBufferSize >::allocated

Definition at line 397 of file allocator.hpp.

◆ storage

template<typename T , std::size_t SmallBufferSize>
buffer_storage_t neolib::small_buffer< T, SmallBufferSize >::storage

Definition at line 396 of file allocator.hpp.


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