libzypp  17.37.5
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
 
void unwrap () 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 251 of file expected.h.

Constructor & Destructor Documentation

◆ expected() [1/3]

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

Definition at line 260 of file expected.h.

◆ ~expected()

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

Definition at line 263 of file expected.h.

◆ expected() [2/3]

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

Definition at line 272 of file expected.h.

◆ expected() [3/3]

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

Definition at line 282 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 292 of file expected.h.

◆ swap()

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

Definition at line 298 of file expected.h.

◆ success()

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

Definition at line 330 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 341 of file expected.h.

◆ operator bool()

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

Definition at line 351 of file expected.h.

◆ is_valid()

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

Definition at line 356 of file expected.h.

◆ error() [2/3]

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

Definition at line 367 of file expected.h.

◆ error() [3/3]

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

Definition at line 373 of file expected.h.

◆ unwrap()

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

Definition at line 379 of file expected.h.

Member Data Documentation

◆ m_value

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

Definition at line 254 of file expected.h.

◆ m_error

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

Definition at line 255 of file expected.h.

◆ @6

union { ... }

◆ m_isValid

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

Definition at line 258 of file expected.h.


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