webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | List of all members
Optional< T > Struct Template Reference

#include <Optional.h>

Public Member Functions

 Optional ()
 
 Optional (const T &valueIn)
 
 Optional (const Optional &other)
 
Optionaloperator= (const Optional &other)
 
Optionaloperator= (const T &value)
 
Optionaloperator= (T &&value)
 
void reset ()
 
bool valid () const
 
const Tvalue () const
 
bool operator== (const Optional &other) const
 
bool operator!= (const Optional &other) const
 

Static Public Member Functions

static Optional Invalid ()
 

Constructor & Destructor Documentation

◆ Optional() [1/3]

template<class T>
Optional< T >::Optional ( )
inline

◆ Optional() [2/3]

template<class T>
Optional< T >::Optional ( const T valueIn)
inline

◆ Optional() [3/3]

template<class T>
Optional< T >::Optional ( const Optional< T > &  other)
inline

Member Function Documentation

◆ Invalid()

template<class T>
static Optional Optional< T >::Invalid ( )
inlinestatic

◆ operator!=()

template<class T>
bool Optional< T >::operator!= ( const Optional< T > &  other) const
inline

◆ operator=() [1/3]

template<class T>
Optional& Optional< T >::operator= ( const Optional< T > &  other)
inline

◆ operator=() [2/3]

template<class T>
Optional& Optional< T >::operator= ( const T value)
inline

◆ operator=() [3/3]

template<class T>
Optional& Optional< T >::operator= ( T &&  value)
inline

◆ operator==()

template<class T>
bool Optional< T >::operator== ( const Optional< T > &  other) const
inline

◆ reset()

template<class T>
void Optional< T >::reset ( )
inline

◆ valid()

template<class T>
bool Optional< T >::valid ( ) const
inline

◆ value()

template<class T>
const T& Optional< T >::value ( ) const
inline

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