BRICKS
Small, useful blocks of code, to build bigger things.
Loading...
Searching...
No Matches
bricks::result< T, E > Member List

This is the complete list of members for bricks::result< T, E >, including all inherited members.

and_instead(const result< U, error_type > &res) const -> result< U, error_type >bricks::result< T, E >inline
and_then(Op &&op) const -> result< typename std::invoke_result_t< Op, value_type >::value_type, error_type >bricks::result< T, E >inline
error_type typedefbricks::result< T, E >
expect(const std::string &msg) const -> value_typebricks::result< T, E >inline
expect_error(const std::string &msg) const -> error_typebricks::result< T, E >inline
from_try_or(F &&f, error_type error_value) noexcept(std::is_nothrow_constructible_v< err< E >, error_type >) -> resultbricks::result< T, E >inlinestatic
from_try_or_default(F &&f) noexcept(std::is_nothrow_invocable_v< decltype(result< T, E >::from_try_or< F >)> &&std::is_nothrow_constructible_v< error_type >) -> resultbricks::result< T, E >inlinestatic
from_try_or_else(F &&f, OnError &&on_error) noexcept(std::is_nothrow_invocable_v< OnError > &&std::is_nothrow_constructible_v< result< T, E >, std::invoke_result_t< OnError > >) -> resultbricks::result< T, E >inlinestatic
is_error() const noexcept -> boolbricks::result< T, E >inline
is_value() const noexcept -> boolbricks::result< T, E >inline
map(F &&f) const -> result< std::invoke_result_t< F, value_type >, error_type >bricks::result< T, E >inline
map_error(F &&f) const -> result< value_type, std::invoke_result_t< F, error_type > >bricks::result< T, E >inline
map_or(std::invoke_result_t< F, value_type > default_value, F &&f) const -> std::invoke_result_t< F, value_type >bricks::result< T, E >inline
map_or_else(G &&default_f, F &&f) const -> std::invoke_result_t< F, value_type >bricks::result< T, E >inline
operator!=(const result &other) const noexcept -> boolbricks::result< T, E >inline
operator=(const result &) noexcept(std::is_nothrow_copy_assignable_v< variant_t >) -> result &=defaultbricks::result< T, E >
operator=(result &&) noexcept -> result &=defaultbricks::result< T, E >
operator=(U in) noexcept -> result &bricks::result< T, E >inline
operator==(const result &other) const noexcept -> boolbricks::result< T, E >inline
or_else(Op &&op) const -> result< value_type, typename std::invoke_result_t< Op, error_type >::error_type >bricks::result< T, E >inline
or_instead(const result< value_type, F > &res) const -> result< value_type, F >bricks::result< T, E >inline
result()=deletebricks::result< T, E >
result(const result &) noexcept(std::is_nothrow_copy_constructible_v< variant_t >)=defaultbricks::result< T, E >
result(result &&) noexcept=defaultbricks::result< T, E >
result(U in) noexcept(std::is_nothrow_move_constructible_v< U >)bricks::result< T, E >inline
result(value_type in) noexcept(std::is_nothrow_move_constructible_v< ok< T > >)bricks::result< T, E >inline
result(error_type in) noexcept(std::is_nothrow_move_constructible_v< err< E > >)bricks::result< T, E >inline
std::hash(const result &r) const noexcept -> std::size_tbricks::result< T, E >friend
unwrap() const -> value_typebricks::result< T, E >inline
unwrap_error() const -> error_typebricks::result< T, E >inline
unwrap_or(value_type default_value) const noexcept -> value_typebricks::result< T, E >inline
unwrap_or_default() const noexcept -> value_typebricks::result< T, E >inline
unwrap_or_else(F &&f) const -> value_typebricks::result< T, E >inline
value_type typedefbricks::result< T, E >
~result()=defaultbricks::result< T, E >