Mir
Public Member Functions | List of all members
mir::optional_value< T > Class Template Reference

#include <optional_value.h>

Public Member Functions

 optional_value ()=default
 
 optional_value (T const &value)
 
optional_valueoperator= (T const &value)
 
bool is_set () const
 
T const & value () const
 
T & value ()
 
T && consume ()
 
 operator bool () const
 

Constructor & Destructor Documentation

◆ optional_value() [1/2]

template<typename T >
mir::optional_value< T >::optional_value ( )
default

◆ optional_value() [2/2]

template<typename T >
mir::optional_value< T >::optional_value ( T const &  value)
inline

Member Function Documentation

◆ consume()

template<typename T >
T&& mir::optional_value< T >::consume ( )
inline

◆ is_set()

template<typename T >
bool mir::optional_value< T >::is_set ( ) const
inline

◆ operator bool()

template<typename T >
mir::optional_value< T >::operator bool ( ) const
inline

◆ operator=()

template<typename T >
optional_value& mir::optional_value< T >::operator= ( T const &  value)
inline

◆ value() [1/2]

template<typename T >
T& mir::optional_value< T >::value ( )
inline

◆ value() [2/2]

template<typename T >
T const& mir::optional_value< T >::value ( ) const
inline

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

Copyright © 2012-2022 Canonical Ltd.
Generated on śro, 1 cze 2022, 16:52:55 UTC
This documentation is licensed under the GPL version 2 or 3.