Function is

Summary

#include <toml/value.hpp>

(1) template <typename T, typename std::enable_if< detail::is_exact_toml_type< T, value_type >::value, std::nullptr_t >::type = nullptr>
    bool is() const noexcept

(2) bool is(value_t t) const noexcept

Function overload

Synopsis

#include <toml/value.hpp>

template <typename T, typename std::enable_if< detail::is_exact_toml_type< T, value_type >::value, std::nullptr_t >::type = nullptr>
bool is() const noexcept

Description

No description yet.

Mentioned in

Source

Lines 1156-1162 in toml/value.hpp.

template<typename T, typename std::enable_if<
    detail::is_exact_toml_type<T, value_type>::value,
    std::nullptr_t>::type = nullptr>
bool is() const noexcept
{
    return detail::type_to_enum<T, value_type>::value == this->type_;
}

Synopsis

#include <toml/value.hpp>

bool is(value_t t) const noexcept

Description

No description yet.

Mentioned in

Source

Lines 1163-1163 in toml/value.hpp.

bool is(value_t t) const noexcept {return t == this->type_;}





Add Discussion as Guest

Log in