Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
27aaf6f8
Commit
27aaf6f8
authored
Jun 21, 2020
by
gatopeich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean-up ordered_map declarations
parent
6ee9e5f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
.gitignore
.gitignore
+2
-0
ordered_map.hpp
include/nlohmann/ordered_map.hpp
+4
-3
json.hpp
single_include/nlohmann/json.hpp
+4
-3
No files found.
.gitignore
View file @
27aaf6f8
...
@@ -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
...
...
include/nlohmann/ordered_map.hpp
View file @
27aaf6f8
...
@@ -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
)
{
{
...
...
single_include/nlohmann/json.hpp
View file @
27aaf6f8
...
@@ -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
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment