mirror of
https://github.com/nlohmann/json
synced 2024-11-25 13:20:05 +00:00
Clean-up ordered_map declarations
This commit is contained in:
parent
6ee9e5f402
commit
27aaf6f845
2
.gitignore
vendored
2
.gitignore
vendored
@ -25,7 +25,9 @@ benchmarks/files/numbers/*.json
|
||||
cmake-build-debug
|
||||
|
||||
test/test-*
|
||||
test/test_data.hpp
|
||||
/.vs
|
||||
.vscode
|
||||
|
||||
doc/mkdocs/venv/
|
||||
doc/mkdocs/docs/images
|
||||
|
@ -17,11 +17,12 @@ struct ordered_map : Container
|
||||
{
|
||||
using key_type = Key;
|
||||
using mapped_type = T;
|
||||
using value_type = typename Container::value_type;
|
||||
using size_type = typename Container::size_type;
|
||||
using typename Container::iterator;
|
||||
using typename Container::value_type;
|
||||
using typename Container::size_type;
|
||||
using Container::Container;
|
||||
|
||||
std::pair<typename Container::iterator, bool> emplace(key_type&& key, T&& t)
|
||||
std::pair<iterator, bool> emplace(key_type&& key, T&& t)
|
||||
{
|
||||
for (auto it = this->begin(); it != this->end(); ++it)
|
||||
{
|
||||
|
@ -15886,11 +15886,12 @@ struct ordered_map : Container
|
||||
{
|
||||
using key_type = Key;
|
||||
using mapped_type = T;
|
||||
using value_type = typename Container::value_type;
|
||||
using size_type = typename Container::size_type;
|
||||
using typename Container::iterator;
|
||||
using typename Container::value_type;
|
||||
using typename Container::size_type;
|
||||
using Container::Container;
|
||||
|
||||
std::pair<typename Container::iterator, bool> emplace(key_type&& key, T&& t)
|
||||
std::pair<iterator, bool> emplace(key_type&& key, T&& t)
|
||||
{
|
||||
for (auto it = this->begin(); it != this->end(); ++it)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user