VSTGUI 4.10
Graphical User Interface Framework not only for VST plugins
Optional< T > Struct Template Reference

simplified optional More...

#include <optional.h>

Public Member Functions

 Optional (T &&v)
 
 Optional (const T &v)
 
 Optional ()
 
 Optional (Optional &&)=default
 
Optionaloperator= (Optional &&)=default
 
 Optional (const Optional &)=delete
 
Optionaloperator= (const Optional &)=delete
 
 operator bool () const
 
const T * operator-> () const
 
T * operator-> ()
 
const T & operator* () const &
 
T & operator* () &
 
T && value ()
 
const T & value () const
 
void reset ()
 

Detailed Description

template<typename T>
struct VSTGUI::Optional< T >

simplified optional

Constructor & Destructor Documentation

◆ Optional() [1/5]

Optional ( T &&  v)
inline

◆ Optional() [2/5]

Optional ( const T &  v)
inlineexplicit

◆ Optional() [3/5]

Optional
inline

◆ Optional() [4/5]

Optional ( Optional< T > &&  )
default

◆ Optional() [5/5]

Optional ( const Optional< T > &  )
delete

Member Function Documentation

◆ operator bool()

operator bool
inlineexplicit

◆ operator*() [1/2]

T & operator* ( ) &
inline

◆ operator*() [2/2]

const T & operator* ( ) const &
inline

◆ operator->() [1/2]

T * operator->
inline

◆ operator->() [2/2]

const T * operator->
inline

◆ operator=() [1/2]

Optional & operator= ( const Optional< T > &  )
delete

◆ operator=() [2/2]

Optional & operator= ( Optional< T > &&  )
default

◆ reset()

void reset
inline

◆ value() [1/2]

T && value
inline

◆ value() [2/2]

const T & value
inline

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