result 0.0.1
A C++ result<T, E> type inspired by Rust
Loading...
Searching...
No Matches
result.h File Reference

result is a C++ library that provides a Result<T, E> type, which can be used to return and propagate errors. It's inspired by Rust's std::Result type. More...

#include <optional>
#include <stdexcept>
#include <utility>
#include <variant>

Go to the source code of this file.

Classes

class  res::err< E >
 Err object represents an unsuccessful outcome and can be implicitly converted to a result. More...
 
class  res::ok< T >
 Ok object represents a successful outcome and can be implicitly converted to a result. More...
 
class  res::result< T, E >
 result is a type that represents either success or failure. More...
 
class  res::result< void, E >
 result class specialization for void value type. More...
 

Detailed Description

result is a C++ library that provides a Result<T, E> type, which can be used to return and propagate errors. It's inspired by Rust's std::Result type.

This file contains the declaration of the Result class template.

Author
GregoryKogan
Version
0.0.1
Date
2023, December 21
License
This software is released under the GNU GENERAL PUBLIC LICENSE Version 3.
Contact
My github page: https://github.com/GregoryKogan