BRICKS
Small, useful blocks of code, to build bigger things.
Loading...
Searching...
No Matches
result.hpp File Reference
#include <cassert>
#include <functional>
#include <initializer_list>
#include <stdexcept>
#include <type_traits>
#include <variant>
#include "type_traits.hpp"
Include dependency graph for result.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  bricks::bad_result_access
 This is the type of the error thrown when accessing a bad result. More...
 
class  bricks::result< T, E >
 A class to represent the result of an operation. More...
 
struct  std::hash< bricks::result< T, E > >
 Template specialization of std::hash for result<T, E>. More...
 

Namespaces

namespace  bricks
 

Typedefs

template<typename T >
using bricks::ok = detail::value_container<T, detail::ok_tag>
 
template<typename E >
using bricks::err = detail::value_container<E, detail::err_tag>