Loading...
Searching...
No Matches
cv::util::optional< T > Class Template Reference

#include <opencv2/gapi/util/optional.hpp>

Public Member Functions

 optional ()
 
 optional (const optional &)=default
 
 optional (const T &) noexcept
 
 optional (optional &&) noexcept
 
 optional (T &&) noexcept
 
bool has_value () const noexcept
 
 operator bool () const noexcept
 
T & operator* ()
 
const T & operator* () const
 
T * operator-> ()
 
const T * operator-> () const
 
optionaloperator= (const optional &)=default
 
optionaloperator= (optional &&)
 
void reset () noexcept
 
void swap (optional &other) noexcept
 
T & value ()
 
const T & value () const
 
template<class U >
value_or (U &&default_value) const
 

Constructor & Destructor Documentation

◆ optional() [1/5]

template<typename T >
cv::util::optional< T >::optional ( )
inline

◆ optional() [2/5]

template<typename T >
cv::util::optional< T >::optional ( const optional< T > &  )
default

◆ optional() [3/5]

template<class T >
cv::util::optional< T >::optional ( T &&  v)
explicitnoexcept

◆ optional() [4/5]

template<class T >
cv::util::optional< T >::optional ( const T &  v)
explicitnoexcept

◆ optional() [5/5]

template<class T >
cv::util::optional< T >::optional ( optional< T > &&  rhs)
noexcept

Member Function Documentation

◆ has_value()

template<class T >
bool cv::util::optional< T >::has_value
noexcept

◆ operator bool()

template<class T >
cv::util::optional< T >::operator bool
noexcept

◆ operator*() [1/2]

template<class T >
T & cv::util::optional< T >::operator*

◆ operator*() [2/2]

template<class T >
const T & cv::util::optional< T >::operator*

◆ operator->() [1/2]

template<class T >
T * cv::util::optional< T >::operator->

◆ operator->() [2/2]

template<class T >
const T * cv::util::optional< T >::operator->

◆ operator=() [1/2]

template<typename T >
optional & cv::util::optional< T >::operator= ( const optional< T > &  )
default

◆ operator=() [2/2]

template<class T >
optional< T > & cv::util::optional< T >::operator= ( optional< T > &&  rhs)

◆ reset()

template<class T >
void cv::util::optional< T >::reset
noexcept

◆ swap()

template<class T >
void cv::util::optional< T >::swap ( optional< T > &  other)
noexcept

◆ value() [1/2]

template<class T >
T & cv::util::optional< T >::value

◆ value() [2/2]

template<class T >
const T & cv::util::optional< T >::value

◆ value_or()

template<class T >
template<class U >
T cv::util::optional< T >::value_or ( U &&  default_value) const

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