T& operator*()
iterator operator++()
iterator operator--()
- bint operator==(iterator)
- bint operator!=(iterator)
+ bint operator==(reverse_iterator)
+ bint operator!=(reverse_iterator)
#cppclass const_iterator(iterator):
# pass
#cppclass const_reverse_iterator(reverse_iterator):
T& operator*()
iterator operator++()
iterator operator--()
- bint operator==(iterator)
- bint operator!=(iterator)
+ bint operator==(reverse_iterator)
+ bint operator!=(reverse_iterator)
#cppclass const_iterator(iterator):
# pass
#cppclass const_reverse_iterator(reverse_iterator):
T& back()
iterator begin()
#const_iterator begin()
+ void clear()
bint empty()
iterator end()
#const_iterator end()
-from pair cimport pair
+from utility cimport pair
cdef extern from "<map>" namespace "std":
cdef cppclass map[T, U]:
bint operator==(iterator)
bint operator!=(iterator)
cppclass reverse_iterator:
- pair[T,U] operator*()
+ pair[T,U]& operator*()
iterator operator++()
iterator operator--()
- bint operator==(iterator)
- bint operator!=(iterator)
+ bint operator==(reverse_iterator)
+ bint operator!=(reverse_iterator)
#cppclass const_iterator(iterator):
# pass
#cppclass const_reverse_iterator(reverse_iterator):
-cdef extern from "<utility>" namespace "std":
- cdef cppclass pair[T, U]:
- T first
- U second
- pair()
- pair(pair&)
- pair(T&, U&)
+from utility cimport pair
cdef extern from "<set>" namespace "std":
cdef cppclass set[T]:
cppclass iterator:
- T operator*()
+ T& operator*()
iterator operator++()
iterator operator--()
bint operator==(iterator)
bint operator!=(iterator)
cppclass reverse_iterator:
- T operator*()
+ T& operator*()
iterator operator++()
iterator operator--()
- bint operator==(iterator)
- bint operator!=(iterator)
+ bint operator==(reverse_iterator)
+ bint operator!=(reverse_iterator)
#cppclass const_iterator(iterator):
# pass
#cppclass const_reverse_iterator(reverse_iterator):
--- /dev/null
+cdef extern from "<utility>" namespace "std":
+ cdef cppclass pair[T, U]:
+ T first
+ U second
+ pair()
+ pair(pair&)
+ pair(T&, U&)
+ bint operator==(pair&, pair&)
+ bint operator!=(pair&, pair&)
+ bint operator<(pair&, pair&)
+ bint operator>(pair&, pair&)
+ bint operator<=(pair&, pair&)
+ bint operator>=(pair&, pair&)
iterator operator--()
bint operator==(iterator)
bint operator!=(iterator)
- bint operator< (iterator)
- bint operator> (iterator)
+ bint operator<(iterator)
+ bint operator>(iterator)
bint operator<=(iterator)
bint operator>=(iterator)
cppclass reverse_iterator:
iterator operator--()
bint operator==(reverse_iterator)
bint operator!=(reverse_iterator)
- bint operator< (reverse_iterator)
- bint operator> (reverse_iterator)
+ bint operator<(reverse_iterator)
+ bint operator>(reverse_iterator)
bint operator<=(reverse_iterator)
bint operator>=(reverse_iterator)
#cppclass const_iterator(iterator):