Function as_array

Summary

#include <toml/value.hpp>

(1) array_type const  & as_array(const std::nothrow_t &) const &noexcept

(2) array_type & as_array(const std::nothrow_t &) &noexcept

(3) array_type && as_array(const std::nothrow_t &) &&noexcept

(4) array_type const  & as_array() const &

(5) array_type & as_array() &

(6) array_type && as_array() &&

Function overload

Synopsis

#include <toml/value.hpp>

array_type const  & as_array(const std::nothrow_t &) const &noexcept

Description

No description yet.

Mentioned in

Source

Lines 1218-1218 in toml/value.hpp.

array_type      const& as_array          (const std::nothrow_t&) const& noexcept {return this->array_.value();}

Synopsis

#include <toml/value.hpp>

array_type & as_array(const std::nothrow_t &) &noexcept

Description

No description yet.

Mentioned in

Source

Lines 1229-1229 in toml/value.hpp.

array_type     & as_array          (const std::nothrow_t&) & noexcept {return this->array_.value();}

Synopsis

#include <toml/value.hpp>

array_type && as_array(const std::nothrow_t &) &&noexcept

Description

No description yet.

Mentioned in

Source

Lines 1240-1240 in toml/value.hpp.

array_type     && as_array          (const std::nothrow_t&) && noexcept {return std::move(this->array_.value());}

Synopsis

#include <toml/value.hpp>

array_type const  & as_array() const &

Description

No description yet.

Mentioned in

Source

Lines 1320-1328 in toml/value.hpp.

array_type const& as_array() const&
{
    if(this->type_ != value_t::array)
    {
        detail::throw_bad_cast<value_t::array>(
                "toml::value::as_array(): ", this->type_, *this);
    }
    return this->array_.value();
}

Synopsis

#include <toml/value.hpp>

array_type & as_array() &

Description

No description yet.

Mentioned in

Source

Lines 1414-1422 in toml/value.hpp.

array_type & as_array() &
{
    if(this->type_ != value_t::array)
    {
        detail::throw_bad_cast<value_t::array>(
                "toml::value::as_array(): ", this->type_, *this);
    }
    return this->array_.value();
}

Synopsis

#include <toml/value.hpp>

array_type && as_array() &&

Description

No description yet.

Mentioned in

Source

Lines 1509-1517 in toml/value.hpp.

array_type && as_array() &&
{
    if(this->type_ != value_t::array)
    {
        detail::throw_bad_cast<value_t::array>(
                "toml::value::as_array(): ", this->type_, *this);
    }
    return std::move(this->array_.value());
}





Add Discussion as Guest

Log in