Function as_string

Summary

#include <toml/value.hpp>

(1) string const  & as_string(const std::nothrow_t &) const &noexcept

(2) string & as_string(const std::nothrow_t &) &noexcept

(3) string && as_string(const std::nothrow_t &) &&noexcept

(4) string const  & as_string() const &

(5) string & as_string() &

(6) string && as_string() &&

Function overload

Synopsis

#include <toml/value.hpp>

string const  & as_string(const std::nothrow_t &) const &noexcept

Description

No description yet.

Mentioned in

Source

Lines 1213-1213 in toml/value.hpp.

string          const& as_string         (const std::nothrow_t&) const& noexcept {return this->string_;}

Synopsis

#include <toml/value.hpp>

string & as_string(const std::nothrow_t &) &noexcept

Description

No description yet.

Mentioned in

Source

Lines 1224-1224 in toml/value.hpp.

string         & as_string         (const std::nothrow_t&) & noexcept {return this->string_;}

Synopsis

#include <toml/value.hpp>

string && as_string(const std::nothrow_t &) &&noexcept

Description

No description yet.

Mentioned in

Source

Lines 1235-1235 in toml/value.hpp.

string         && as_string         (const std::nothrow_t&) && noexcept {return std::move(this->string_);}

Synopsis

#include <toml/value.hpp>

string const  & as_string() const &

Description

No description yet.

Mentioned in

Source

Lines 1275-1283 in toml/value.hpp.

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

Synopsis

#include <toml/value.hpp>

string & as_string() &

Description

No description yet.

Mentioned in

Source

Lines 1369-1377 in toml/value.hpp.

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

Synopsis

#include <toml/value.hpp>

string && as_string() &&

Description

No description yet.

Mentioned in

Source

Lines 1464-1472 in toml/value.hpp.

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





Add Discussion as Guest

Log in