template <typename T>
scn::scan_expected struct

An expected<T, scan_error>.

Not a type alias to shorten template names

Base classes

template <typename T, typename E>
class expected<T, scan_error>

Public functions

auto emplace(Args && ... args) -> decltype(auto)
auto error() & -> error_type& constexpr
Get the unexpected value, if one is contained in *this.
auto operator*() & -> U& constexpr
Get the expected value, if one is contained in *this.
auto value() & -> U& constexpr
Get the expected value, if one is contained in *this.
auto value_or(U&& default_value) const & -> T constexpr