scnlib  0.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
result.h File Reference
#include "util.h"

Go to the source code of this file.

Classes

class  scn::error
 Error class. More...
 
struct  scn::error::success_tag_t
 
class  scn::result< T, Error >
 
class  scn::expected< T, Error, Enable >
 expected-like type. More...
 
class  scn::expected< T, Error, typename std::enable_if< std::is_default_constructible< T >::value >::type >
 expected-like type for default-constructible success values. More...
 
class  scn::expected< T, Error, typename std::enable_if< !std::is_default_constructible< T >::value >::type >
 expected-like type for non-default-constructible success values. More...
 
struct  scn::detail::error_handler
 

Namespaces

 scn
 
 scn::detail
 

Functions

constexpr bool scn::operator== (error a, error b) noexcept
 
constexpr bool scn::operator!= (error a, error b) noexcept
 
template<typename T , typename U = typename std::remove_cv< typename std::remove_reference<T>::type>::type>
SCN_CLANG_POP expected< U > scn::make_expected (T &&val)