WPILibC++ 2024.3.2
wpi::detail::expected_operations_base< T, E > Struct Template Reference
Inheritance diagram for wpi::detail::expected_operations_base< T, E >:
wpi::detail::expected_storage_base< T, E, bool, bool > wpi::detail::expected_copy_base< T, E, bool > wpi::detail::expected_copy_base< T, E, false > wpi::detail::expected_move_base< T, E, bool > wpi::detail::expected_move_base< T, E, false > wpi::detail::expected_copy_assign_base< T, E, bool > wpi::detail::expected_copy_assign_base< T, E, false > wpi::detail::expected_move_assign_base< T, E, bool > wpi::detail::expected_move_assign_base< T, E, false > wpi::expected< T, E >

Public Member Functions

template<class... Args>
void construct (Args &&...args) noexcept
 
template<class Rhs >
void construct_with (Rhs &&rhs) noexcept
 
template<class... Args>
void construct_error (Args &&...args) noexcept
 
void assign (const expected_operations_base &rhs) noexcept
 
void assign (expected_operations_base &&rhs) noexcept
 
template<class Rhs >
void assign_common (Rhs &&rhs)
 
bool has_value () const
 
WPI_EXPECTED_11_CONSTEXPR T & get () &
 
constexpr const T & get () const &
 
WPI_EXPECTED_11_CONSTEXPR T && get () &&
 
constexpr const T && get () 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< T, E, bool, bool >
constexpr expected_storage_base ()
 
constexpr expected_storage_base (no_init_t)
 
template<class... Args, detail::enable_if_t< std::is_constructible< T, Args &&... >::value > * = nullptr>
constexpr expected_storage_base (in_place_t, Args &&...args)
 
template<class U , class... Args, detail::enable_if_t< std::is_constructible< T, std::initializer_list< U > &, Args &&... >::value > * = nullptr>
constexpr expected_storage_base (in_place_t, std::initializer_list< U > il, Args &&...args)
 
template<class... Args, detail::enable_if_t< std::is_constructible< E, Args &&... >::value > * = nullptr>
constexpr expected_storage_base (unexpect_t, Args &&...args)
 
template<class U , class... Args, detail::enable_if_t< std::is_constructible< E, std::initializer_list< U > &, Args &&... >::value > * = nullptr>
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< T, E, bool, bool >
union {
   T   m_val
 
   unexpected< E >   m_unexpect
 
   char   m_no_init
 
}; 
 
bool m_has_val
 

Member Function Documentation

◆ assign() [1/2]

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

◆ assign() [2/2]

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

◆ assign_common()

template<class T , class E >
template<class Rhs >
void wpi::detail::expected_operations_base< T, E >::assign_common ( Rhs &&  rhs)
inline

◆ construct()

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

◆ construct_error()

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

◆ construct_with()

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

◆ destroy_val()

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

◆ get() [1/4]

template<class T , class E >
WPI_EXPECTED_11_CONSTEXPR T & wpi::detail::expected_operations_base< T, E >::get ( ) &
inline

◆ get() [2/4]

template<class T , class E >
WPI_EXPECTED_11_CONSTEXPR T && wpi::detail::expected_operations_base< T, E >::get ( ) &&
inline

◆ get() [3/4]

template<class T , class E >
constexpr const T & wpi::detail::expected_operations_base< T, E >::get ( ) const &
inlineconstexpr

◆ get() [4/4]

template<class T , class E >
constexpr const T && wpi::detail::expected_operations_base< T, E >::get ( ) const &&
inlineconstexpr

◆ geterr() [1/4]

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

◆ geterr() [2/4]

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

◆ geterr() [3/4]

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

◆ geterr() [4/4]

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

◆ has_value()

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

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