Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
70330aab
Commit
70330aab
authored
Oct 21, 2015
by
molpopgen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
many of the basic C++98 tags. This all works with c++11, too, except for inserter[T1,T2]
parent
afb995d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
Cython/Includes/libcpp/iterator.pxd
Cython/Includes/libcpp/iterator.pxd
+32
-0
No files found.
Cython/Includes/libcpp/iterator.pxd
0 → 100644
View file @
70330aab
#Basic reference: http://www.cplusplus.com/reference/iterator/
#Most of these classes are in fact empty structs
cdef
extern
from
"<iterator>"
namespace
"std"
nogil
:
cdef
cppclass
iterator
[
Category
,
T
,
Distance
,
Pointer
,
Reference
]:
pass
cdef
cppclass
output_iterator_tag
:
pass
cdef
cppclass
input_iterator_tag
:
pass
cdef
cppclass
forward_iterator_tag
(
input_iterator_tag
):
pass
cdef
cppclass
bidirectional_iterator_tag
(
forward_iterator_tag
):
pass
cdef
cppclass
random_access_iterator_tag
(
bidirectional_iterator_tag
):
pass
cdef
cppclass
back_insert_iterator
[
T
](
iterator
[
output_iterator_tag
,
void
,
void
,
void
,
void
]):
pass
cdef
cppclass
front_insert_iterator
[
T
](
iterator
[
output_iterator_tag
,
void
,
void
,
void
,
void
]):
pass
cdef
cppclass
insert_iterator
[
T
](
iterator
[
output_iterator_tag
,
void
,
void
,
void
,
void
]):
pass
back_insert_iterator
[
CONTAINER
]
back_inserter
[
CONTAINER
](
CONTAINER
&
)
front_insert_iterator
[
CONTAINER
]
front_inserter
[
CONTAINER
](
CONTAINER
&
)
##Note: this is the C++98 version of inserter.
##The C++11 versions's prototype relies on typedef members of classes, which Cython doesn't currently support:
##template <class Container>
##insert_iterator<Container> inserter (Container& x, typename Container::iterator it)
insert_iterator
[
CONTAINER
]
inserter
[
CONTAINER
,
ITERATOR
](
CONTAINER
&
,
ITERATOR
)
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