Function as_boolean

Summary

#include <toml/value.hpp>

(1) boolean const  & as_boolean(const std::nothrow_t &) const &noexcept

(2) boolean & as_boolean(const std::nothrow_t &) &noexcept

(3) boolean && as_boolean(const std::nothrow_t &) &&noexcept

(4) boolean const  & as_boolean() const &

(5) boolean & as_boolean() &

(6) boolean && as_boolean() &&

Function overload

Synopsis

#include <toml/value.hpp>

boolean const  & as_boolean(const std::nothrow_t &) const &noexcept

Description

No description yet.

Mentioned in

Source

Lines 1210-1210 in toml/value.hpp.

boolean         const& as_boolean        (const std::nothrow_t&) const& noexcept {return this->boolean_;}

Synopsis

#include <toml/value.hpp>

boolean & as_boolean(const std::nothrow_t &) &noexcept

Description

No description yet.

Mentioned in

Source

Lines 1221-1221 in toml/value.hpp.

boolean        & as_boolean        (const std::nothrow_t&) & noexcept {return this->boolean_;}

Synopsis

#include <toml/value.hpp>

boolean && as_boolean(const std::nothrow_t &) &&noexcept

Description

No description yet.

Mentioned in

Source

Lines 1232-1232 in toml/value.hpp.

boolean        && as_boolean        (const std::nothrow_t&) && noexcept {return std::move(this->boolean_);}

Synopsis

#include <toml/value.hpp>

boolean const  & as_boolean() const &

Description

No description yet.

Mentioned in

Source

Lines 1248-1256 in toml/value.hpp.

boolean const& as_boolean() const&
{
    if(this->type_ != value_t::boolean)
    {
        detail::throw_bad_cast<value_t::boolean>(
                "toml::value::as_boolean(): ", this->type_, *this);
    }
    return this->boolean_;
}

Synopsis

#include <toml/value.hpp>

boolean & as_boolean() &

Description

No description yet.

Mentioned in

Source

Lines 1342-1350 in toml/value.hpp.

boolean & as_boolean() &
{
    if(this->type_ != value_t::boolean)
    {
        detail::throw_bad_cast<value_t::boolean>(
                "toml::value::as_boolean(): ", this->type_, *this);
    }
    return this->boolean_;
}

Synopsis

#include <toml/value.hpp>

boolean && as_boolean() &&

Description

No description yet.

Mentioned in

Source

Lines 1437-1445 in toml/value.hpp.

boolean && as_boolean() &&
{
    if(this->type_ != value_t::boolean)
    {
        detail::throw_bad_cast<value_t::boolean>(
                "toml::value::as_boolean(): ", this->type_, *this);
    }
    return std::move(this->boolean_);
}





Add Discussion as Guest

Log in