Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
d01193a4
Unverified
Commit
d01193a4
authored
Apr 10, 2020
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
run "make amalgamate"
parent
299feb13
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
single_include/nlohmann/json.hpp
single_include/nlohmann/json.hpp
+8
-8
No files found.
single_include/nlohmann/json.hpp
View file @
d01193a4
...
...
@@ -10516,8 +10516,8 @@ class json_pointer
/*!
@brief append an array index at the end of this JSON pointer
@param[in] array_i
nde
x array index to append
@return JSON pointer with @a array_i
nde
x appended
@param[in] array_i
d
x array index to append
@return JSON pointer with @a array_i
d
x appended
@liveexample{The example shows the usage of `operator/=`.,json_pointer__operator_add}
...
...
@@ -10529,9 +10529,9 @@ class json_pointer
@since version 3.6.0
*/
json_pointer
&
operator
/=
(
std
::
size_t
array_i
nde
x
)
json_pointer
&
operator
/=
(
std
::
size_t
array_i
d
x
)
{
return
*
this
/=
std
::
to_string
(
array_i
nde
x
);
return
*
this
/=
std
::
to_string
(
array_i
d
x
);
}
/*!
...
...
@@ -10579,8 +10579,8 @@ class json_pointer
@brief create a new JSON pointer by appending the array-index-token at the end of the JSON pointer
@param[in] ptr JSON pointer
@param[in] array_i
nde
x array index
@return a new JSON pointer with @a array_i
nde
x appended to @a ptr
@param[in] array_i
d
x array index
@return a new JSON pointer with @a array_i
d
x appended to @a ptr
@liveexample{The example shows the usage of `operator/`.,json_pointer__operator_add_binary}
...
...
@@ -10590,9 +10590,9 @@ class json_pointer
@since version 3.6.0
*/
friend
json_pointer
operator
/
(
const
json_pointer
&
ptr
,
std
::
size_t
array_i
nde
x
)
friend
json_pointer
operator
/
(
const
json_pointer
&
ptr
,
std
::
size_t
array_i
d
x
)
{
return
json_pointer
(
ptr
)
/=
array_i
nde
x
;
return
json_pointer
(
ptr
)
/=
array_i
d
x
;
}
/*!
...
...
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