1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-13 20:21:48 +03:00
This commit is contained in:
Niels
2015-06-15 16:37:49 +02:00
parent 1375162562
commit 8e9a711996
3 changed files with 40 additions and 0 deletions

View File

@ -825,6 +825,18 @@ class basic_json
return (m_type == value_t::number_integer) or (m_type == value_t::number_float);
}
// return whether value an integer is number
bool is_number_integer() const noexcept
{
return m_type == value_t::number_integer;
}
// return whether value is a floating-point number
bool is_number_float() const noexcept
{
return m_type == value_t::number_float;
}
// return whether value is object
bool is_object() const noexcept
{