proxsuite 0.7.2
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
tl::detail::optional_operations_base< T > Struct Template Reference

#include <proxsuite/helpers/tl-optional.hpp>

Inheritance diagram for tl::detail::optional_operations_base< T >:
[legend]
Collaboration diagram for tl::detail::optional_operations_base< T >:
[legend]

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 tl::detail::optional_storage_base< T, bool >
TL_OPTIONAL_11_CONSTEXPR optional_storage_base () noexcept
template<class... U>
TL_OPTIONAL_11_CONSTEXPR optional_storage_base (in_place_t, U &&... u)
 ~optional_storage_base ()

Additional Inherited Members

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

Detailed Description

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

Definition at line 498 of file tl-optional.hpp.

Member Function Documentation

◆ hard_reset()

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

Definition at line 502 of file tl-optional.hpp.

◆ construct()

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

Definition at line 509 of file tl-optional.hpp.

◆ assign()

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

Definition at line 516 of file tl-optional.hpp.

◆ has_value()

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

Definition at line 532 of file tl-optional.hpp.

◆ get() [1/4]

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

Definition at line 534 of file tl-optional.hpp.

◆ get() [2/4]

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

Definition at line 535 of file tl-optional.hpp.

◆ get() [3/4]

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

Definition at line 536 of file tl-optional.hpp.

◆ get() [4/4]

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

Definition at line 538 of file tl-optional.hpp.


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