template <typename T>
scn::v3::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) noexcept(…)
auto error() & →  error_type& constexpr noexcept
Get the unexpected value, if one is contained in *this.
auto operator*() & →  U& constexpr noexcept
Get the expected value, if one is contained in *this.
auto value() & →  U& constexpr noexcept
Get the expected value, if one is contained in *this.
auto value_or(U&& default_value) const & →  T constexpr noexcept(…)