mirror of
https://github.com/nlohmann/json.git
synced 2026-05-09 07:45:23 +00:00
+ removed data() function
This commit is contained in:
-13
@@ -1224,19 +1224,6 @@ JSON::const_iterator JSON::find(const char* key) const
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
@return the payload of the JSON object.
|
||||
*/
|
||||
JSON::value JSON::data() noexcept
|
||||
{
|
||||
return _value;
|
||||
}
|
||||
|
||||
const JSON::value JSON::data() const noexcept
|
||||
{
|
||||
return _value;
|
||||
}
|
||||
|
||||
bool JSON::operator==(const JSON& o) const noexcept
|
||||
{
|
||||
switch (_type)
|
||||
|
||||
@@ -279,11 +279,6 @@ class JSON
|
||||
/// find an element in an object (returns end() iterator otherwise)
|
||||
const_iterator find(const char*) const;
|
||||
|
||||
/// direct access to the underlying payload
|
||||
value data() noexcept;
|
||||
/// direct access to the underlying payload
|
||||
const value data() const noexcept;
|
||||
|
||||
/// lexicographically compares the values
|
||||
bool operator==(const JSON&) const noexcept;
|
||||
/// lexicographically compares the values
|
||||
|
||||
Reference in New Issue
Block a user