Commit 27aaf6f8 by gatopeich

Clean-up ordered_map declarations

parent 6ee9e5f4
...@@ -25,7 +25,9 @@ benchmarks/files/numbers/*.json ...@@ -25,7 +25,9 @@ benchmarks/files/numbers/*.json
cmake-build-debug cmake-build-debug
test/test-* test/test-*
test/test_data.hpp
/.vs /.vs
.vscode
doc/mkdocs/venv/ doc/mkdocs/venv/
doc/mkdocs/docs/images doc/mkdocs/docs/images
......
...@@ -17,11 +17,12 @@ struct ordered_map : Container ...@@ -17,11 +17,12 @@ struct ordered_map : Container
{ {
using key_type = Key; using key_type = Key;
using mapped_type = T; using mapped_type = T;
using value_type = typename Container::value_type; using typename Container::iterator;
using size_type = typename Container::size_type; using typename Container::value_type;
using typename Container::size_type;
using Container::Container; 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) for (auto it = this->begin(); it != this->end(); ++it)
{ {
......
...@@ -15886,11 +15886,12 @@ struct ordered_map : Container ...@@ -15886,11 +15886,12 @@ struct ordered_map : Container
{ {
using key_type = Key; using key_type = Key;
using mapped_type = T; using mapped_type = T;
using value_type = typename Container::value_type; using typename Container::iterator;
using size_type = typename Container::size_type; using typename Container::value_type;
using typename Container::size_type;
using Container::Container; 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) for (auto it = this->begin(); it != this->end(); ++it)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment