template <typename T>
scan_expected struct
An expected<T, scan_
.
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