ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::utility::optional_base< T > Struct Template Reference

#include <Optional.h>

Public Member Functions

constexpr optional_base () noexcept
 
constexpr optional_base (const T &v)
 
constexpr optional_base (T &&v)
 
template<class... Args>
 optional_base (in_place_t, Args &&... args)
 
template<class U , class... Args, typename std::enable_if< std::is_constructible< T, std::initializer_list< U >> ::value, bool >::type = false>
 optional_base (in_place_t, std::initializer_list< U > il, Args &&... args)
 
 ~optional_base ()
 

Public Attributes

bool init_
 
storage_t< T > storage_
 

Detailed Description

template<class T>
struct cloudViewer::utility::optional_base< T >

Definition at line 176 of file Optional.h.

Constructor & Destructor Documentation

◆ optional_base() [1/5]

template<class T >
constexpr cloudViewer::utility::optional_base< T >::optional_base ( )
inlineconstexprnoexcept

Definition at line 180 of file Optional.h.

◆ optional_base() [2/5]

template<class T >
constexpr cloudViewer::utility::optional_base< T >::optional_base ( const T &  v)
inlineexplicitconstexpr

Definition at line 183 of file Optional.h.

◆ optional_base() [3/5]

template<class T >
constexpr cloudViewer::utility::optional_base< T >::optional_base ( T &&  v)
inlineexplicitconstexpr

Definition at line 185 of file Optional.h.

◆ optional_base() [4/5]

template<class T >
template<class... Args>
cloudViewer::utility::optional_base< T >::optional_base ( in_place_t  ,
Args &&...  args 
)
inlineexplicit

Definition at line 189 of file Optional.h.

◆ optional_base() [5/5]

template<class T >
template<class U , class... Args, typename std::enable_if< std::is_constructible< T, std::initializer_list< U >> ::value, bool >::type = false>
cloudViewer::utility::optional_base< T >::optional_base ( in_place_t  ,
std::initializer_list< U >  il,
Args &&...  args 
)
inlineexplicit

Definition at line 196 of file Optional.h.

◆ ~optional_base()

Member Data Documentation

◆ init_

template<class T >
bool cloudViewer::utility::optional_base< T >::init_

◆ storage_

template<class T >
storage_t<T> cloudViewer::utility::optional_base< T >::storage_

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