Function contains

Synopsis

#include <toml/value.hpp>

bool contains(const key_type &k) const

Description

No description yet.

Mentioned in

Source

Lines 1691-1699 in toml/value.hpp.

bool contains(const key_type& k) const
{
    if(!this->is_table())
    {
        detail::throw_bad_cast<value_t::table>(
            "toml::value::contains(key): ", this->type_, *this);
    }
    return (this->as_table(std::nothrow).count(k) != 0);
}





Add Discussion as Guest

Log in