blob: c5c764468f66031b0f00f5bbeecf0772ff785d7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# distutils: language = c++
cdef extern from "<vector>" namespace "std":
cdef cppclass vector[T]:
cppclass iterator:
T operator*()
iterator operator++()
bint operator==(iterator)
bint operator!=(iterator)
vector()
void push_back(T&)
T& operator[](int)
T& at(int)
iterator begin()
iterator end()
cdef vector[int].iterator iter #iter is declared as being of type vector<int>::iterator
|