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
2dd94dd9
Commit
2dd94dd9
authored
Apr 12, 2015
by
Niels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some simplifications
parent
f03c6ce4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
16 deletions
+8
-16
json.hpp
src/json.hpp
+4
-8
json.hpp.re2c
src/json.hpp.re2c
+4
-8
No files found.
src/json.hpp
View file @
2dd94dd9
...
@@ -1498,9 +1498,7 @@ class basic_json
...
@@ -1498,9 +1498,7 @@ class basic_json
*/
*/
inline
const_iterator
begin
()
const
noexcept
inline
const_iterator
begin
()
const
noexcept
{
{
const_iterator
result
(
this
);
return
cbegin
();
result
.
set_begin
();
return
result
;
}
}
/*!
/*!
...
@@ -1531,9 +1529,7 @@ class basic_json
...
@@ -1531,9 +1529,7 @@ class basic_json
*/
*/
inline
const_iterator
end
()
const
noexcept
inline
const_iterator
end
()
const
noexcept
{
{
const_iterator
result
(
this
);
return
cend
();
result
.
set_end
();
return
result
;
}
}
/*!
/*!
...
@@ -1562,7 +1558,7 @@ class basic_json
...
@@ -1562,7 +1558,7 @@ class basic_json
*/
*/
inline
const_reverse_iterator
rbegin
()
const
noexcept
inline
const_reverse_iterator
rbegin
()
const
noexcept
{
{
return
c
onst_reverse_iterator
(
end
()
);
return
c
rbegin
(
);
}
}
/*!
/*!
...
@@ -1580,7 +1576,7 @@ class basic_json
...
@@ -1580,7 +1576,7 @@ class basic_json
*/
*/
inline
const_reverse_iterator
rend
()
const
noexcept
inline
const_reverse_iterator
rend
()
const
noexcept
{
{
return
c
onst_reverse_iterator
(
begin
()
);
return
c
rend
(
);
}
}
/*!
/*!
...
...
src/json.hpp.re2c
View file @
2dd94dd9
...
@@ -1498,9 +1498,7 @@ class basic_json
...
@@ -1498,9 +1498,7 @@ class basic_json
*/
*/
inline const_iterator begin() const noexcept
inline const_iterator begin() const noexcept
{
{
const_iterator result(this);
return cbegin();
result.set_begin();
return result;
}
}
/*!
/*!
...
@@ -1531,9 +1529,7 @@ class basic_json
...
@@ -1531,9 +1529,7 @@ class basic_json
*/
*/
inline const_iterator end() const noexcept
inline const_iterator end() const noexcept
{
{
const_iterator result(this);
return cend();
result.set_end();
return result;
}
}
/*!
/*!
...
@@ -1562,7 +1558,7 @@ class basic_json
...
@@ -1562,7 +1558,7 @@ class basic_json
*/
*/
inline const_reverse_iterator rbegin() const noexcept
inline const_reverse_iterator rbegin() const noexcept
{
{
return c
onst_reverse_iterator(end()
);
return c
rbegin(
);
}
}
/*!
/*!
...
@@ -1580,7 +1576,7 @@ class basic_json
...
@@ -1580,7 +1576,7 @@ class basic_json
*/
*/
inline const_reverse_iterator rend() const noexcept
inline const_reverse_iterator rend() const noexcept
{
{
return c
onst_reverse_iterator(begin()
);
return c
rend(
);
}
}
/*!
/*!
...
...
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