All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Static Public Member Functions | List of all members
Akumuli::Expected< Target > Class Template Reference

#include <expected.h>

Public Member Functions

 Expected (Target const &t)
 Value c-tor.
 Expected (Expected< Target > const &t)
 Copy expected value.
Expected< Target > & operator= (Expected< Target > const &t)
 Expected (std::exception_ptr &&ptr)
 Construct from exception ptr.
const Target & get () const
 Get value or throw.
bool ok () const
 Check for error.
template<class Exception >
bool unpack_error (Exception *err)
 Extract error from value.

Static Public Member Functions

template<class E >
static Expected< Target > from (E const &e)
 Construct from any exception.

Detailed Description

template<class Target>
class Akumuli::Expected< Target >

Optional type. Can contain value or error.

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