Furrent
|
Used to handle errors without using exceptions. More...
#include <result.hpp>
Public Member Functions | |
Result (const Result &)=delete | |
Result & | operator= (const Result &)=delete |
Result (Result &&) noexcept | |
Result & | operator= (Result &&) noexcept |
bool | valid () const |
R & | operator* () |
R * | operator-> () |
const E & | error () const |
Static Public Member Functions | |
static Result | OK (R &&result) |
Creates an ok result. More... | |
static Result | ERROR (E &&error) |
Creates an error result. More... | |
Used to handle errors without using exceptions.
R | type of the result |
E | type of the error |
|
delete |
|
noexcept |
const E & fur::util::Result< R, E >::error |
|
static |
Creates an error result.
|
static |
Creates an ok result.
R & fur::util::Result< R, E >::operator* |
R * fur::util::Result< R, E >::operator-> |
|
delete |
|
noexcept |
bool fur::util::Result< R, E >::valid |