scc 2025.09
SystemC components library
nonstd::detail::optional_operations_base< T > Struct Template Reference
Inheritance diagram for nonstd::detail::optional_operations_base< T >:
Collaboration diagram for nonstd::detail::optional_operations_base< T >:

Public Member Functions

void hard_reset () noexcept
template<class... Args>
void construct (Args &&... args)
template<class Opt>
void assign (Opt &&rhs)
bool has_value () const
TL_OPTIONAL_11_CONSTEXPR T & get () &
TL_OPTIONAL_11_CONSTEXPR const T & get () const &
TL_OPTIONAL_11_CONSTEXPR T && get () &&
constexpr const T && get () const &&
Public Member Functions inherited from nonstd::detail::optional_storage_base< T, bool >
template<class... U>
TL_OPTIONAL_11_CONSTEXPR optional_storage_base (in_place_t, U &&... u)

Additional Inherited Members

Public Attributes inherited from nonstd::detail::optional_storage_base< T, bool >
union { 
   dummy   m_dummy 
   T   m_value 
}; 
bool m_has_value

Detailed Description

template<class T>
struct nonstd::detail::optional_operations_base< T >

Definition at line 338 of file optional.hpp.

Member Function Documentation

◆ assign()

template<class T>
template<class Opt>
void nonstd::detail::optional_operations_base< T >::assign ( Opt && rhs)
inline

Definition at line 351 of file optional.hpp.

◆ construct()

template<class T>
template<class... Args>
void nonstd::detail::optional_operations_base< T >::construct ( Args &&... args)
inline

Definition at line 346 of file optional.hpp.

◆ get() [1/4]

template<class T>
TL_OPTIONAL_11_CONSTEXPR T & nonstd::detail::optional_operations_base< T >::get ( ) &
inline

Definition at line 368 of file optional.hpp.

◆ get() [2/4]

template<class T>
TL_OPTIONAL_11_CONSTEXPR T && nonstd::detail::optional_operations_base< T >::get ( ) &&
inline

Definition at line 370 of file optional.hpp.

◆ get() [3/4]

template<class T>
TL_OPTIONAL_11_CONSTEXPR const T & nonstd::detail::optional_operations_base< T >::get ( ) const &
inline

Definition at line 369 of file optional.hpp.

◆ get() [4/4]

template<class T>
const T && nonstd::detail::optional_operations_base< T >::get ( ) const &&
inlineconstexpr

Definition at line 372 of file optional.hpp.

◆ hard_reset()

template<class T>
void nonstd::detail::optional_operations_base< T >::hard_reset ( )
inlinenoexcept

Definition at line 341 of file optional.hpp.

◆ has_value()

template<class T>
bool nonstd::detail::optional_operations_base< T >::has_value ( ) const
inline

Definition at line 366 of file optional.hpp.


The documentation for this struct was generated from the following file:
  • /home/eyck/Projects/MINRES/SystemC-Components/src/common/nonstd/optional.hpp