uvcc
libuv C++ bindings
uv::type_storage< _T_ > Class Template Reference

A wrapper providing the feature of being a standard layout type for the given type _T_. More...

#include "utility.hpp"

Public Types

using value_type = typename std::decay< _T_ >::type
 
using storage_type = typename std::aligned_storage< sizeof(value_type), alignof(value_type) >::type
 

Public Member Functions

 type_storage (const type_storage &)=delete
 
type_storageoperator= (const type_storage &)=delete
 
 type_storage (type_storage &&)=delete
 
type_storageoperator= (type_storage &&)=delete
 
template<typename... _Args_>
 type_storage (_Args_ &&... _args)
 
 type_storage (const value_type &_value)
 
 type_storage (value_type &&_value)
 
const value_type & value () const noexcept
 
value_type & value () noexcept
 

Detailed Description

template<typename _T_>
class uv::type_storage< _T_ >

A wrapper providing the feature of being a standard layout type for the given type _T_.

Note
All the member functions creating a new value in the storage from their arguments use the curly brace initialization.

Definition at line 475 of file utility.hpp.


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