Skip to content

Commit

Permalink
Merge branch 'feature/insert' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Apr 22, 2017
2 parents 42b4cdd + 9b32f72 commit 4b316ec
Show file tree
Hide file tree
Showing 227 changed files with 387 additions and 234 deletions.
6 changes: 4 additions & 2 deletions doc/examples/README.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <json.hpp>
#include "json.hpp"
#include <iomanip> // for std::setw

using json = nlohmann::json;

Expand Down Expand Up @@ -29,7 +30,8 @@ int main()
j["new"]["key"]["value"] = {"another", "list"};

// count elements
j["size"] = j.size();
auto s = j.size();
j["size"] = s;

// pretty print with indent of 4 spaces
std::cout << std::setw(4) << j << '\n';
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/README.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/nv9fOg0XVVhWmFFy"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/Mi7u49cYwMR0cgTH"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/README.output
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
"value": 42.99
},
"pi": 3.141,
"size": 9
"size": 8
}
2 changes: 1 addition & 1 deletion doc/examples/array.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/array.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/1fsm4gI55p83DOwU"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/dREyaxnVNgG1CAUx"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/at__object_t_key_type.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/at__object_t_key_type.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/8ldtT0NOhidn0fOA"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/rCEcfTCRY40LDvoR"><b>online</b></a>
3 changes: 0 additions & 3 deletions doc/examples/at__object_t_key_type.test

This file was deleted.

2 changes: 1 addition & 1 deletion doc/examples/at__object_t_key_type_const.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/at__object_t_key_type_const.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/nfmFWMaJJHFJ7eVK"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/SIuocSXktJ2lxj0q"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/at__size_type.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/at__size_type.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/8UnQY256zGX2Lx6d"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/wB9tQWAyqeajJTVn"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/at__size_type_const.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/at__size_type_const.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/U1fv6LY7xZOAuSBs"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/s5MsN3WV6zsGcWY4"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/at_json_pointer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/at_json_pointer.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/Fy2xBfZMols2DUQC"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/SXcTwaW8DVzDT34z"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/at_json_pointer_const.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/at_json_pointer_const.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/WxhV3mL9YX8FJonk"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/zOTLPM0c5dNFZhk3"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/back.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/back.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/CAv4NNr4D1FJhhUv"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/Sco4kIFMzpkYo37h"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/basic_json__CompatibleType.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"
#include <deque>
#include <list>
#include <forward_list>
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/basic_json__CompatibleType.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/VM7W2kpE7sIYJ5DW"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/n2KT4Yk3mzZXKnS5"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/basic_json__InputIt_InputIt.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/basic_json__InputIt_InputIt.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/oUU2X0pbZq7gawRB"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/gsHOHaLe3MfVhI2s"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/basic_json__basic_json.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/basic_json__basic_json.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/6Qfn12BDzb3vqO5p"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/zUmWzPFVFx6sEojX"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/basic_json__copyassignment.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/basic_json__copyassignment.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/iWYvmlA4qQmtvACX"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/1BjO38rdSmNGxpyn"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/basic_json__list_init_t.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/basic_json__list_init_t.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/iZzzxEpB7tbhz0cx"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/H0DDK6yuoCGZuoFw"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/basic_json__moveconstructor.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/basic_json__moveconstructor.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/CaDlatv1uXhQiu7o"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/nXd0SKQaR6tHukvy"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/basic_json__nullptr_t.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/basic_json__nullptr_t.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/9Tvfs2dJBW8m8ihA"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/AbLqRqEEN5N9W1Fj"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/basic_json__size_type_basic_json.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/basic_json__size_type_basic_json.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/IFZT4VL0oRotJBxl"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/ecx4xZQX7VXuhlAz"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/basic_json__value.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/basic_json__value.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/qdV5W2Lrljmjv4LG"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/bP03yg3IIbhARy2F"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/basic_json__value_ptr.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/basic_json__value_ptr.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/K4L4D6nibuGXbjfd"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/OY0l4CpfWuDJudyo"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/basic_json__value_t.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/basic_json__value_t.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/RMpEI2o935KgD2o2"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/zRdz49DwtK0gIJuc"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/begin.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/begin.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/0lW1WJ1ZP8g92Jp9"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/Q0QcnX1LAQT5k7IU"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/cbegin.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/cbegin.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/yarD6DyxYlIf8Ymg"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/ukuefRRIclE7D7IX"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/cend.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/cend.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/9oPbpnFNgKtKjB0O"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/nHLMXLRwA3QWSnsQ"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/clear.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/clear.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/wwsjMZP8U6bWhUil"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/WQS4WbZC6pX4qZE4"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/count.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/count.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/yv5TMrq9qREivvHf"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/mrJDlTQD3orHnAdF"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/crbegin.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/crbegin.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/GQz9A5y7HduQHVMw"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/XsC14rus4L6meQTg"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/crend.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/crend.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/Qom888gs2RM4wR4H"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/jr4aG41Zr1pWUlAw"><b>online</b></a>
3 changes: 2 additions & 1 deletion doc/examples/diff.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <json.hpp>
#include "json.hpp"
#include <iomanip> // for std::setw

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/diff.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/hicmeOK39tBxaluM"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/KKfCy1yctyq7PBI1"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/dump.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/dump.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/rjYfsEq7v1RCHprk"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/jC8OLyTjE6EOcMZt"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/emplace.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/emplace.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/B6ILaoysGMliouEO"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/mvy0nMn3uStrP9tS"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/emplace_back.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/emplace_back.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/jdch45YEMX94DvlH"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/wvLvTvPt0dovixFE"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/empty.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/empty.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/rP64u8KqUJqB9lFd"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/g1mZBQAdSJE3cNCH"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/end.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/end.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/4Fbmy4IG012HmGKs"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/vp0L5nlCJewdlolt"><b>online</b></a>
2 changes: 1 addition & 1 deletion doc/examples/erase__IteratorType.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <json.hpp>
#include "json.hpp"

using json = nlohmann::json;

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/erase__IteratorType.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="http://melpon.org/wandbox/permlink/W83LsQNBy5qCoABq"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/N0oo892iXEqaUzej"><b>online</b></a>
Loading

0 comments on commit 4b316ec

Please sign in to comment.