1 cdef extern from "<vector>" namespace "std":
2 cdef cppclass vector[T]:
5 iterator operator++() nogil
6 iterator operator--() nogil
7 iterator operator+(size_t) nogil
8 iterator operator-(size_t) nogil
9 bint operator==(iterator) nogil
10 bint operator!=(iterator) nogil
11 bint operator<(iterator) nogil
12 bint operator>(iterator) nogil
13 bint operator<=(iterator) nogil
14 bint operator>=(iterator) nogil
15 cppclass reverse_iterator:
17 iterator operator++() nogil
18 iterator operator--() nogil
19 iterator operator+(size_t) nogil
20 iterator operator-(size_t) nogil
21 bint operator==(reverse_iterator) nogil
22 bint operator!=(reverse_iterator) nogil
23 bint operator<(reverse_iterator) nogil
24 bint operator>(reverse_iterator) nogil
25 bint operator<=(reverse_iterator) nogil
26 bint operator>=(reverse_iterator) nogil
27 #cppclass const_iterator(iterator):
29 #cppclass const_reverse_iterator(reverse_iterator):
31 vector() nogil except +
32 vector(vector&) nogil except +
33 vector(size_t) nogil except +
34 vector(size_t, T&) nogil except +
35 #vector[input_iterator](input_iterator, input_iterator)
36 T& operator[](size_t) nogil
37 #vector& operator=(vector&)
38 bint operator==(vector&, vector&) nogil
39 bint operator!=(vector&, vector&) nogil
40 bint operator<(vector&, vector&) nogil
41 bint operator>(vector&, vector&) nogil
42 bint operator<=(vector&, vector&) nogil
43 bint operator>=(vector&, vector&) nogil
44 void assign(size_t, T&) nogil
45 void assign[input_iterator](input_iterator, input_iterator)
48 iterator begin() nogil
49 #const_iterator begin()
50 size_t capacity() nogil
55 iterator erase(iterator) nogil
56 iterator erase(iterator, iterator) nogil
58 iterator insert(iterator, T&) nogil
59 void insert(iterator, size_t, T&) nogil
60 void insert(iterator, iterator, iterator) nogil
61 size_t max_size() nogil
63 void push_back(T&) nogil
64 reverse_iterator rbegin() nogil
65 #const_reverse_iterator rbegin()
66 reverse_iterator rend() nogil
67 #const_reverse_iterator rend()
68 void reserve(size_t) nogil
69 void resize(size_t) nogil
70 void resize(size_t, T&) nogil
72 void swap(vector&) nogil