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

Ok object represents a successful outcome and can be implicitly converted to a result. More...

#include <result.h>

Public Member Functions

 ok (T value)
 
template<typename E >
 operator result< T, E > () const
 
template<typename E >
 operator result< void, E > () const
 

Detailed Description

template<typename T = std::monostate>
class res::ok< T >

Ok object represents a successful outcome and can be implicitly converted to a result.

Ok object holds a value of type T. Empty Ok object can be created if T is std::monostate.

Template Parameters
TType of the value. Defaults to std::monostate.

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