ModErn Text Analysis
META Enumerates Textual Applications
Public Member Functions | Public Attributes | List of all members
meta::util::optional_storage< T > Union Template Reference

A storage class for the optional<T> class. More...

#include <optional.h>

Public Member Functions

 optional_storage (trivial_init_t)
 Trivial constructor for the storage class.
 
template<class... Args>
 optional_storage (Args &&... args)
 Forwarding constructor for the storage class, to create the internal value. More...
 
 ~optional_storage ()
 no-op destructor.
 

Public Attributes

optional_dummy_t dummy_
 A dummy value.
 
value_
 The contained value of an option<T> that is engaged.
 

Detailed Description

template<class T>
union meta::util::optional_storage< T >

A storage class for the optional<T> class.

Constructor & Destructor Documentation

§ optional_storage()

template<class T >
template<class... Args>
meta::util::optional_storage< T >::optional_storage ( Args &&...  args)

Forwarding constructor for the storage class, to create the internal value.

Parameters
argsThe arguments to forward to the internal value's constructor

The documentation for this union was generated from the following files: