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
0ff33d09
Unverified
Commit
0ff33d09
authored
Mar 29, 2021
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
👌
apply review comments
parent
5c1c79b6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
13 deletions
+4
-13
at.md
doc/mkdocs/docs/api/basic_json/at.md
+2
-2
operator[].md
doc/mkdocs/docs/api/basic_json/operator[].md
+2
-11
json.hpp
include/nlohmann/json.hpp
+0
-0
json.hpp
single_include/nlohmann/json.hpp
+0
-0
No files found.
doc/mkdocs/docs/api/basic_json/at.md
View file @
0ff33d09
...
...
@@ -7,9 +7,9 @@ const_reference at(size_type idx) const;
// (2)
template
<
typename
KeyT
>
reference
at
(
KeyT
&
&
key
);
reference
at
(
const
KeyT
&
key
);
template
<
typename
KeyT
>
const_reference
at
(
KeyT
&
&
key
)
const
;
const_reference
at
(
const
KeyT
&
key
)
const
;
// (3)
reference
at
(
const
json_pointer
&
ptr
);
...
...
doc/mkdocs/docs/api/basic_json/operator[].md
View file @
0ff33d09
...
...
@@ -10,12 +10,6 @@ template<typename KeyT>
reference
operator
[](
KeyT
&&
key
);
template
<
typename
KeyT
>
const_reference
operator
[](
KeyT
&&
key
)
const
;
template
<
typename
T
>
reference
operator
[](
T
*
key
);
template
<
typename
T
>
const_reference
operator
[](
T
*
key
)
const
;
reference
operator
[](
const
std
::
string_view
&
key
);
// since C++17
const_reference
operator
[](
const
std
::
string_view
&
key
)
const
;
// since C++17
// (3)
reference
operator
[](
const
json_pointer
&
ptr
);
...
...
@@ -32,9 +26,6 @@ const_reference operator[](const json_pointer& ptr) const;
: A type for an object key other than
`basic_json::json_pointer`
. This can also be a string literal or a string view
(C++17).
`T`
: string literal convertible to
`object_t::key_type`
## Parameters
`idx`
(in)
...
...
@@ -195,6 +186,6 @@ Strong exception safety: if an exception occurs, the original value stays intact
## Version history
1.
Added in version 1.0.0.
2.
Added in version 1.0.0. Overloads for
`T* key`
added in version 1.1.0. Template
and overload for
`std::string_view
`
added in version 3.10.0
.
2.
Added in version 1.0.0. Overloads for
`T* key`
added in version 1.1.0. Template
`T* key`
replaced by template
`KeyT
`
in version 3.10.0 which now also supports
`std::string_view`
.
3.
Added in version 2.0.0.
include/nlohmann/json.hpp
View file @
0ff33d09
This diff is collapsed.
Click to expand it.
single_include/nlohmann/json.hpp
View file @
0ff33d09
This diff is collapsed.
Click to expand 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