result 0.0.1
A C++ result<T, E> type inspired by Rust
Loading...
Searching...
No Matches
res::result< void, E > Class Template Reference

result class specialization for void value type. More...

#include <result.h>

Public Member Functions

auto is_ok () const -> bool
 
 operator bool () const
 
auto operator! () const -> bool
 
auto error () const -> const E &
 
template<typename F , typename R = std::invoke_result_t<F>>
auto map (F &&functor) const -> result< R, E >
 
template<typename F , typename U = std::invoke_result_t<F, E>>
auto map_err (F &&functor) const -> result< void, U >
 

Friends

template<typename U >
class ok
 
template<typename U >
class err
 

Detailed Description

template<typename E>
class res::result< void, E >

result class specialization for void value type.


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