Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
6ed99341
Commit
6ed99341
authored
Jul 30, 2014
by
Philipp A. Hartmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GenericValue: document Array iterator functions
parent
11d31aaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
document.h
include/rapidjson/document.h
+7
-0
No files found.
include/rapidjson/document.h
View file @
6ed99341
...
...
@@ -919,9 +919,16 @@ int z = a[0u].GetInt(); // This works too.
const
GenericValue
&
operator
[](
SizeType
index
)
const
{
return
const_cast
<
GenericValue
&>
(
*
this
)[
index
];
}
//! Element iterator
/*! \pre IsArray() == true */
ValueIterator
Begin
()
{
RAPIDJSON_ASSERT
(
IsArray
());
return
data_
.
a
.
elements
;
}
//! \em Past-the-end element iterator
/*! \pre IsArray() == true */
ValueIterator
End
()
{
RAPIDJSON_ASSERT
(
IsArray
());
return
data_
.
a
.
elements
+
data_
.
a
.
size
;
}
//! Constant element iterator
/*! \pre IsArray() == true */
ConstValueIterator
Begin
()
const
{
return
const_cast
<
GenericValue
&>
(
*
this
).
Begin
();
}
//! Constant \em past-the-end element iterator
/*! \pre IsArray() == true */
ConstValueIterator
End
()
const
{
return
const_cast
<
GenericValue
&>
(
*
this
).
End
();
}
//! Request the array to have enough capacity to store elements.
...
...
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