mitteLib
Loading...
Searching...
No Matches
result.hpp File Reference
#include <memory>
#include <mlab/any_of.hpp>
#include <type_traits>
#include <vector>
Include dependency graph for result.hpp:

Go to the source code of this file.

Classes

struct  mlab::traits::is_result< T >
 
struct  mlab::traits::is_result< mlab::result< Args... > >
 
struct  mlab::result_success_type
 
struct  mlab::result_impl< E, T >
 
struct  mlab::result_impl< E, T >::content_wrap< RC >
 
class  mlab::result< E, T >
 
struct  mlab::impl::tuple_container_type< Args >
 
struct  mlab::impl::tuple_container_type< T1, T2 >
 
struct  mlab::impl::tuple_container_type< T >
 
struct  mlab::impl::tuple_container_type<>
 
class  mlab::result< E, Ts... >
 
class  mlab::result< E, void >
 
class  mlab::result< E >
 
struct  mlab::impl::tuple_to_result< class, class >
 
struct  mlab::impl::tuple_to_result< E, std::tuple< Args... > >
 
struct  mlab::impl::result_to_tuple_container< class >
 
struct  mlab::impl::result_to_tuple_container< result< E, Args... > >
 
struct  mlab::impl::result_to_tuple_container< result< E, T > >
 
struct  mlab::impl::result_to_tuple_container< result< E > >
 

Namespaces

namespace  mlab
 
namespace  mlab::traits
 
namespace  mlab::impl
 

Concepts

concept  mlab::is_result
 

Typedefs

template<class... Ts>
using mlab::tuple_container_t = impl::tuple_container_type<Ts...>::type
 

Enumerations

enum struct  mlab::result_content { mlab::error , mlab::data }
 

Functions

template<is_result R1, is_result... Rs>
decltype(auto) mlab::concat_result (R1 &&r1, Rs &&...rs)
 Concatenates as many results as provided. The returned object will contain all result::value_type of the provided results, in the given order. If any of the results provided has an error state, the error is returned. It is only returned the first found error in the order in which the results are provided.
 
template<class T , is_result R>
decltype(auto) mlab::get (R &&r)
 
template<is_result R>
auto mlab::result_to_tuple (R &&r)
 
template<class E , class Tuple >
auto mlab::result_from_tuple (Tuple &&tpl)
 
template<std::size_t... Is, is_result R>
auto mlab::impl::result_to_tuple (std::index_sequence< Is... >, R &&r)
 
template<class E , std::size_t... Is, class Tuple >
auto mlab::impl::result_from_tuple (std::index_sequence< Is... >, Tuple &&tpl)
 

Variables

static constexpr result_success_type mlab::result_success {}