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

Err object represents an unsuccessful outcome and can be implicitly converted to a result. More...

#include <result.h>

Public Member Functions

 err (E error)
 
template<typename T >
 operator result< T, E > () const
 
 operator result< void, E > () const
 

Detailed Description

template<typename E>
class res::err< E >

Err object represents an unsuccessful outcome and can be implicitly converted to a result.

Err object holds an error of type E. Err object can't be empty, E must not be std::monostate.

Template Parameters
EType of the error.

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