Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
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
capnproto
Commits
8009807e
Commit
8009807e
authored
May 09, 2014
by
Kenton Varda
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #88 from partylemon/Iterator
Explicitly mark IndexingIterator as a RandomAccessIterator
parents
e80de835
64462816
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
list.h
c++/src/capnp/list.h
+13
-0
No files found.
c++/src/capnp/list.h
View file @
8009807e
...
...
@@ -27,6 +27,9 @@
#include "layout.h"
#include "orphan.h"
#include <initializer_list>
#ifdef KJ_STD_COMPAT
#include <iterator>
#endif // KJ_STD_COMPAT
namespace
capnp
{
namespace
_
{
// private
...
...
@@ -506,4 +509,14 @@ private:
}
// namespace capnp
#ifdef KJ_STD_COMPAT
namespace
std
{
template
<
typename
Container
,
typename
Element
>
struct
iterator_traits
<
capnp
::
_
::
IndexingIterator
<
Container
,
Element
>>
:
public
std
::
iterator
<
std
::
random_access_iterator_tag
,
Element
,
int
>
{};
}
// namespace std
#endif // KJ_STD_COMPAT
#endif // CAPNP_LIST_H_
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