CAF  0.17.3
Public Member Functions | List of all members
caf::expected< void > Class Template Reference

The pattern expected<void> shall be used for functions that may generate an error but would otherwise return bool. More...

#include <expected.hpp>

Inherited by caf::expected< unit_t >.

Public Member Functions

 expected (unit_t) noexcept
 
 expected (no_error_t) noexcept
 
 expected (caf::error e) noexcept
 
 expected (const expected &other) noexcept
 
 expected (expected &&other) noexcept
 
template<class Enum , uint8_t = error_category<Enum>::value>
 expected (Enum code)
 
expectedoperator= (const expected &other)=default
 
expectedoperator= (expected &&other) noexcept
 
 operator bool () const
 
const caf::errorerror () const
 

Detailed Description

template<>
class caf::expected< void >

The pattern expected<void> shall be used for functions that may generate an error but would otherwise return bool.


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