libzypp 17.34.1
zyppng::expected< void, E > Class Template Reference

#include <zypp-core/zyppng/pipelines/expected.h>

Public Member Functions

 ~expected ()
 
 expected (const expected &other)
 
 expected (expected &&other) noexcept
 
expectedoperator= (expected other)
 
void swap (expected &other) noexcept
 
 operator bool () const
 
bool is_valid () const
 
E & error ()
 
const E & error () const
 

Static Public Member Functions

static expected success ()
 
template<typename... ConsParams>
static expected error (ConsParams &&...params)
 

Private Member Functions

 expected ()
 

Private Attributes

union zyppng::expected< void, E >:: { ... }  
 
bool m_isValid
 

Detailed Description

template<typename E>
class zyppng::expected< void, E >

Definition at line 210 of file expected.h.

Constructor & Destructor Documentation

◆ expected() [1/3]

template<typename E >
zyppng::expected< void, E >::expected ( )
inlineprivate

Definition at line 219 of file expected.h.

◆ ~expected()

template<typename E >
zyppng::expected< void, E >::~expected ( )
inline

Definition at line 222 of file expected.h.

◆ expected() [2/3]

template<typename E >
zyppng::expected< void, E >::expected ( const expected< void, E > & other)
inline

Definition at line 231 of file expected.h.

◆ expected() [3/3]

template<typename E >
zyppng::expected< void, E >::expected ( expected< void, E > && other)
inlinenoexcept

Definition at line 241 of file expected.h.

Member Function Documentation

◆ operator=()

template<typename E >
expected & zyppng::expected< void, E >::operator= ( expected< void, E > other)
inline

Definition at line 251 of file expected.h.

◆ swap()

template<typename E >
void zyppng::expected< void, E >::swap ( expected< void, E > & other)
inlinenoexcept

Definition at line 257 of file expected.h.

◆ success()

template<typename E >
static expected zyppng::expected< void, E >::success ( )
inlinestatic

Definition at line 289 of file expected.h.

◆ error() [1/3]

template<typename E >
template<typename... ConsParams>
static expected zyppng::expected< void, E >::error ( ConsParams &&... params)
inlinestatic

Definition at line 300 of file expected.h.

◆ operator bool()

template<typename E >
zyppng::expected< void, E >::operator bool ( ) const
inline

Definition at line 310 of file expected.h.

◆ is_valid()

template<typename E >
bool zyppng::expected< void, E >::is_valid ( ) const
inline

Definition at line 315 of file expected.h.

◆ error() [2/3]

template<typename E >
E & zyppng::expected< void, E >::error ( )
inline

Definition at line 326 of file expected.h.

◆ error() [3/3]

template<typename E >
const E & zyppng::expected< void, E >::error ( ) const
inline

Definition at line 332 of file expected.h.

Member Data Documentation

◆ m_value

template<typename E >
void* zyppng::expected< void, E >::m_value

Definition at line 213 of file expected.h.

◆ m_error

template<typename E >
E zyppng::expected< void, E >::m_error

Definition at line 214 of file expected.h.

◆ []

union zyppng::expected< void, E > { ... } zyppng::expected< void, E >

◆ m_isValid

template<typename E >
bool zyppng::expected< void, E >::m_isValid
private

Definition at line 217 of file expected.h.


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