Menu

object::Uninitialized< T > Struct Template Reference

Uninitialized presents a container of an object of type T. More...

#include <Uninitialized.h>

Public Member Functions

bool operator== (const Uninitialized &t)
 operator is provided for some std::algorithms
void * operator new (size_t size, void *buffer)
 placement new operator to allow a constructor call on pre-allocated memory

Data Fields

uint8_t content [sizeof(T)]
 the provided storage for an object of type T

Detailed Description

template<typename T>
struct object::Uninitialized< T >

Uninitialized presents a container of an object of type T.

An object of type Uninitialized contains at least memory for an object of type T. Thus, it is possible to put an object of type T in the container or construct it with the aid of the placement new operator directly to the provided storage within the container.

Template Parameters:
T is the element type that is stored.

Member Function Documentation

template<typename T >
void* object::Uninitialized< T >::operator new ( size_t  size,
void *  buffer 
) [inline]

placement new operator to allow a constructor call on pre-allocated memory

template<typename T >
bool object::Uninitialized< T >::operator== ( const Uninitialized< T > &  t  )  [inline]

operator is provided for some std::algorithms


Field Documentation

template<typename T >
uint8_t object::Uninitialized< T >::content[sizeof(T)]

the provided storage for an object of type T


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