Function unwrap_err

Summary

#include <toml/result.hpp>

(1) error_type & unwrap_err() &

(2) error_type const  & unwrap_err() const &

(3) error_type && unwrap_err() &&

Function overload

Synopsis

#include <toml/result.hpp>

error_type & unwrap_err() &

Description

No description yet.

Mentioned in

Source

Lines 435-439 in toml/result.hpp.

error_type&       unwrap_err() &
{
    if(is_ok()) {throw std::runtime_error("toml::result: bad unwrap_err");}
    return this->fail.value;
}

Synopsis

#include <toml/result.hpp>

error_type const  & unwrap_err() const &

Description

No description yet.

Mentioned in

Source

Lines 440-444 in toml/result.hpp.

error_type const& unwrap_err() const&
{
    if(is_ok()) {throw std::runtime_error("toml::result: bad unwrap_err");}
    return this->fail.value;
}

Synopsis

#include <toml/result.hpp>

error_type && unwrap_err() &&

Description

No description yet.

Mentioned in

Source

Lines 445-449 in toml/result.hpp.

error_type&&      unwrap_err() &&
{
    if(is_ok()) {throw std::runtime_error("toml::result: bad unwrap_err");}
    return std::move(this->fail.value);
}





Add Discussion as Guest

Log in