Template Function rsl::has_error

Function Documentation

template<typename T, typename E>
constexpr auto rsl::has_error(tl::expected<T, E> const &exp)

Test if expected type is Error.

Parameters:

exp – Input tl::expected<T,E> value

Returns:

True if expected paraemter is Error