1 cdef extern from "<vector>" namespace std:
3 cdef cppclass vector[TYPE]:
9 __init__(iterator, iterator)
11 TYPE& __getitem__(int)
12 TYPE& __setitem__(int, TYPE&)
13 vector __new__(vector&)
14 bool __eq__(vector&, vector&)
15 bool __ne__(vector&, vector&)
16 bool __lt__(vector&, vector&)
17 bool __gt__(vector&, vector&)
18 bool __le__(vector&, vector&)
19 bool __ge__(vector&, vector&)
21 void assign(int, TYPE)
22 #void assign(iterator, iterator)
30 iterator erase(iterator)
31 iterator erase(iterator, iterator)
33 iterator insert(iterator, TYPE&)
34 void insert(iterator, int, TYPE&)
35 void insert(iterator, iterator)
43 void resize(int, TYPE&) #void resize(size_type num, const TYPE& = TYPE())
47 cdef extern from "<deque>" namespace std:
49 cdef cppclass deque[TYPE]:
55 __init__(iterator, iterator)
57 TYPE& operator[]( size_type index );
58 const TYPE& operator[]( size_type index ) const;
59 deque __new__(deque&);
60 bool __eq__(deque&, deque&);
61 bool __ne__(deque&, deque&);
62 bool __lt__(deque&, deque&);
63 bool __gt__(deque&, deque&);
64 bool __le__(deque&, deque&);
65 bool __ge__(deque&, deque&);
67 void assign(int, TYPE&)
68 void assign(iterator, iterator)
75 iterator erase(iterator)
76 iterator erase(iterator, iterator)
78 iterator insert(iterator, TYPE&)
79 void insert(iterator, int, TYPE&)
80 void insert(iterator, iterator, iterator)
85 void push_front(TYPE&)
89 void resize(int, TYPE&)