mirror of
https://github.com/nlohmann/json.git
synced 2026-10-22 05:58:12 +00:00
closes #90
This commit is contained in:
1 parent
1375162562
commit
8e9a711996
3 files changed
+40
No files matched your search
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user