member function · 4 overloads
std::unexpected::error
- Header
<expected>- Scope
std::unexpected- cppreference
- std::unexpected nearest page
Overloads
- (1)
constexpr const E& error() const & noexcept; - (2)
constexpr E& error() & noexcept; - (3)
constexpr const E&& error() const && noexcept; - (4)
constexpr E&& error() && noexcept;