1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-28 12:02:00 +03:00

more test cases

This commit is contained in:
Niels
2015-02-12 22:54:42 +01:00
parent 583d20a3b1
commit 4361c4d03f
3 changed files with 63 additions and 4 deletions

View File

@ -1,3 +1,12 @@
/*!
@file
@copyright The code is licensed under the MIT License
<http://opensource.org/licenses/MIT>,
Copyright (c) 2013-2015 Niels Lohmann.
@author Niels Lohmann <http://nlohmann.me>
@see https://github.com/nlohmann/json
*/
#ifndef _NLOHMANN_JSON
#define _NLOHMANN_JSON
@ -1026,14 +1035,12 @@ class basic_json
m_value.object->insert(value);
}
/*
/// add an object to an object
inline reference operator+=(const typename object_t::value_type& value)
{
push_back(value);
return operator[](value.first);
}
*/
/// swaps the contents
inline void swap(reference other) noexcept