WPILibC++ 2024.3.2
wpi::detail::expected_operations_base< void, E > Struct Template Reference
Inheritance diagram for wpi::detail::expected_operations_base< void, E >:
wpi::detail::expected_storage_base< void, E >

Public Member Functions

template<class... Args>
void construct () noexcept
 
template<class Rhs >
void construct_with (Rhs &&) noexcept
 
template<class... Args>
void construct_error (Args &&...args) noexcept
 
template<class Rhs >
void assign (Rhs &&rhs) noexcept
 
bool has_value () const
 
WPI_EXPECTED_11_CONSTEXPR unexpected< E > & geterr () &
 
constexpr const unexpected< E > & geterr () const &
 
WPI_EXPECTED_11_CONSTEXPR unexpected< E > && geterr () &&
 
constexpr const unexpected< E > && geterr () const &&
 
WPI_EXPECTED_11_CONSTEXPR void destroy_val ()
 
- Public Member Functions inherited from wpi::detail::expected_storage_base< void, E >
constexpr expected_storage_base ()
 
constexpr expected_storage_base (no_init_t)
 
constexpr expected_storage_base (in_place_t, Args &&...args)
 
constexpr expected_storage_base (in_place_t, std::initializer_list< U > il, Args &&...args)
 
constexpr expected_storage_base (unexpect_t, Args &&...args)
 
constexpr expected_storage_base (unexpect_t, std::initializer_list< U > il, Args &&...args)
 
 ~expected_storage_base ()
 

Additional Inherited Members

- Public Attributes inherited from wpi::detail::expected_storage_base< void, E >
void m_val
 
unexpected< E > m_unexpect
 
char m_no_init
 
union {
   T   m_val
 
   unexpected< E >   m_unexpect
 
   char   m_no_init
 
}; 
 
bool m_has_val
 

Member Function Documentation

◆ assign()

template<class E >
template<class Rhs >
void wpi::detail::expected_operations_base< void, E >::assign ( Rhs &&  rhs)
inlinenoexcept

◆ construct()

template<class E >
template<class... Args>
void wpi::detail::expected_operations_base< void, E >::construct ( )
inlinenoexcept

◆ construct_error()

template<class E >
template<class... Args>
void wpi::detail::expected_operations_base< void, E >::construct_error ( Args &&...  args)
inlinenoexcept

◆ construct_with()

template<class E >
template<class Rhs >
void wpi::detail::expected_operations_base< void, E >::construct_with ( Rhs &&  )
inlinenoexcept

◆ destroy_val()

template<class E >
WPI_EXPECTED_11_CONSTEXPR void wpi::detail::expected_operations_base< void, E >::destroy_val ( )
inline

◆ geterr() [1/4]

template<class E >
WPI_EXPECTED_11_CONSTEXPR unexpected< E > & wpi::detail::expected_operations_base< void, E >::geterr ( ) &
inline

◆ geterr() [2/4]

template<class E >
WPI_EXPECTED_11_CONSTEXPR unexpected< E > && wpi::detail::expected_operations_base< void, E >::geterr ( ) &&
inline

◆ geterr() [3/4]

template<class E >
constexpr const unexpected< E > & wpi::detail::expected_operations_base< void, E >::geterr ( ) const &
inlineconstexpr

◆ geterr() [4/4]

template<class E >
constexpr const unexpected< E > && wpi::detail::expected_operations_base< void, E >::geterr ( ) const &&
inlineconstexpr

◆ has_value()

template<class E >
bool wpi::detail::expected_operations_base< void, E >::has_value ( ) const
inline

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