A semantic type used for distinguishing failure values in an API that returns result types.
More...
|
| failure ()=default |
| Constructs a failure via default construction.
|
|
template<typename... Args, typename = typename std::enable_if<std::is_constructible<E,Args...>::value>::type> |
constexpr | failure (in_place_t, Args &&...args) noexcept(std::is_nothrow_constructible< E, Args... >::value) |
| Constructs a failure by delegating construction to the underlying constructor. More...
|
|
template<typename U , typename... Args, typename = typename std::enable_if<std::is_constructible<E,std::initializer_list<U>,Args...>::value>::type> |
constexpr | failure (in_place_t, std::initializer_list< U > ilist, Args &&...args) noexcept(std::is_nothrow_constructible< E, std::initializer_list< U >, Args... >::value) |
| Constructs a failure by delegating construction to the underlying constructor. More...
|
|
| failure (const failure &other)=default |
| Constructs this failure by copying the contents of an existing one. More...
|
|
| failure (failure &&other)=default |
| Constructs this failure by moving the contents of an existing one. More...
|
|
template<typename E2 , typename = typename std::enable_if<std::is_constructible<E,const E2&>::value>::type> |
constexpr | failure (const failure< E2 > &other) noexcept(std::is_nothrow_constructible< E, const E2 &>::value) |
| Constructs this failure by copy-converting other . More...
|
|
template<typename E2 , typename = typename std::enable_if<std::is_constructible<E,E2&&>::value>::type> |
constexpr | failure (failure< E2 > &&other) noexcept(std::is_nothrow_constructible< E, E2 &&>::value) |
| Constructs this failure by move-converting other . More...
|
|
template<typename E2 , typename = typename std::enable_if<detail::failure_is_value_assignable<E,E2>::value>::type> |
RESULT_CPP14_CONSTEXPR auto | operator= (E2 &&error) noexcept(std::is_nothrow_assignable< E, E2 >::value||std::is_lvalue_reference< E >::value) -> failure & |
| Assigns the value of error to this failure through move-assignment. More...
|
|
auto | operator= (const failure &other) -> failure &=default |
| Assigns the contents of other to this by copy-assignment. More...
|
|
auto | operator= (failure &&other) -> failure &=default |
| Assigns the contents of other to this by move-assignment. More...
|
|
template<typename E2 , typename = typename std::enable_if<std::is_assignable<E&,const E2&>::value>::type> |
RESULT_CPP14_CONSTEXPR auto | operator= (const failure< E2 > &other) noexcept(std::is_nothrow_assignable< E, const E2 &>::value) -> failure & |
| Assigns the contents of other to this by copy conversion. More...
|
|
template<typename E2 , typename = typename std::enable_if<std::is_assignable<E&,E2&&>::value>::type> |
RESULT_CPP14_CONSTEXPR auto | operator= (failure< E2 > &&other) noexcept(std::is_nothrow_assignable< E, E2 &&>::value) -> failure & |
| Assigns the contents of other to this by move conversion. More...
|
|
|
template<typename E2 , typename std::enable_if< detail::failure_is_implicit_value_convertible< E, E2 >::value, int >::type = 0> |
constexpr | failure (E2 &&error) noexcept(std::is_nothrow_constructible< E, E2 >::value) |
| Constructs a failure from the given error. More...
|
|
template<typename E2 , typename std::enable_if< detail::failure_is_explicit_value_convertible< E, E2 >::value, int >::type = 0> |
constexpr | failure (E2 &&error) noexcept(std::is_nothrow_constructible< E, E2 >::value) |
| Constructs a failure from the given error. More...
|
|
|
RESULT_CPP14_CONSTEXPR auto | error () &noexcept -> typename std::add_lvalue_reference< E >::type |
| Gets the underlying error. More...
|
|
RESULT_CPP14_CONSTEXPR auto | error () &&noexcept -> typename std::add_rvalue_reference< E >::type |
| Gets the underlying error. More...
|
|
constexpr auto | error () const &noexcept -> typename std::add_lvalue_reference< typename std::add_const< E >::type >::type |
| Gets the underlying error. More...
|
|
constexpr auto | error () const &&noexcept -> typename std::add_rvalue_reference< typename std::add_const< E >::type >::type |
| Gets the underlying error. More...
|
|
template<typename E>
class cpp::bitwizeshift::failure< E >
A semantic type used for distinguishing failure values in an API that returns result types.
- Template Parameters
-
Definition at line 306 of file result.hpp.