Function as_floating

Summary

#include <toml/value.hpp>

(1) floating const  & as_floating(const std::nothrow_t &) const &noexcept

(2) floating & as_floating(const std::nothrow_t &) &noexcept

(3) floating && as_floating(const std::nothrow_t &) &&noexcept

(4) floating const  & as_floating() const &

(5) floating & as_floating() &

(6) floating && as_floating() &&

Function overload

Synopsis

#include <toml/value.hpp>

floating const  & as_floating(const std::nothrow_t &) const &noexcept

Description

No description yet.

Mentioned in

Source

Lines 1212-1212 in toml/value.hpp.

floating        const& as_floating       (const std::nothrow_t&) const& noexcept {return this->floating_;}

Synopsis

#include <toml/value.hpp>

floating & as_floating(const std::nothrow_t &) &noexcept

Description

No description yet.

Mentioned in

Source

Lines 1223-1223 in toml/value.hpp.

floating       & as_floating       (const std::nothrow_t&) & noexcept {return this->floating_;}

Synopsis

#include <toml/value.hpp>

floating && as_floating(const std::nothrow_t &) &&noexcept

Description

No description yet.

Mentioned in

Source

Lines 1234-1234 in toml/value.hpp.

floating       && as_floating       (const std::nothrow_t&) && noexcept {return std::move(this->floating_);}

Synopsis

#include <toml/value.hpp>

floating const  & as_floating() const &

Description

No description yet.

Mentioned in

Source

Lines 1266-1274 in toml/value.hpp.

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

Synopsis

#include <toml/value.hpp>

floating & as_floating() &

Description

No description yet.

Mentioned in

Source

Lines 1360-1368 in toml/value.hpp.

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

Synopsis

#include <toml/value.hpp>

floating && as_floating() &&

Description

No description yet.

Mentioned in

Source

Lines 1455-1463 in toml/value.hpp.

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





Add Discussion as Guest

Log in