Function as_integer

Summary

#include <toml/value.hpp>

(1) integer const  & as_integer(const std::nothrow_t &) const &noexcept

(2) integer & as_integer(const std::nothrow_t &) &noexcept

(3) integer && as_integer(const std::nothrow_t &) &&noexcept

(4) integer const  & as_integer() const &

(5) integer & as_integer() &

(6) integer && as_integer() &&

Function overload

Synopsis

#include <toml/value.hpp>

integer const  & as_integer(const std::nothrow_t &) const &noexcept

Description

No description yet.

Mentioned in

Source

Lines 1211-1211 in toml/value.hpp.

integer         const& as_integer        (const std::nothrow_t&) const& noexcept {return this->integer_;}

Synopsis

#include <toml/value.hpp>

integer & as_integer(const std::nothrow_t &) &noexcept

Description

No description yet.

Mentioned in

Source

Lines 1222-1222 in toml/value.hpp.

integer        & as_integer        (const std::nothrow_t&) & noexcept {return this->integer_;}

Synopsis

#include <toml/value.hpp>

integer && as_integer(const std::nothrow_t &) &&noexcept

Description

No description yet.

Mentioned in

Source

Lines 1233-1233 in toml/value.hpp.

integer        && as_integer        (const std::nothrow_t&) && noexcept {return std::move(this->integer_);}

Synopsis

#include <toml/value.hpp>

integer const  & as_integer() const &

Description

No description yet.

Mentioned in

Source

Lines 1257-1265 in toml/value.hpp.

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

Synopsis

#include <toml/value.hpp>

integer & as_integer() &

Description

No description yet.

Mentioned in

Source

Lines 1351-1359 in toml/value.hpp.

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

Synopsis

#include <toml/value.hpp>

integer && as_integer() &&

Description

No description yet.

Mentioned in

Source

Lines 1446-1454 in toml/value.hpp.

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





Add Discussion as Guest

Log in