1 from utility cimport pair
3 cdef extern from "<map>" namespace "std":
4 cdef cppclass map[T, U]:
6 pair[T, U]& operator*() nogil
7 iterator operator++() nogil
8 iterator operator--() nogil
9 bint operator==(iterator) nogil
10 bint operator!=(iterator) nogil
11 cppclass reverse_iterator:
12 pair[T, U]& operator*() nogil
13 iterator operator++() nogil
14 iterator operator--() nogil
15 bint operator==(reverse_iterator) nogil
16 bint operator!=(reverse_iterator) nogil
17 #cppclass const_iterator(iterator):
19 #cppclass const_reverse_iterator(reverse_iterator):
22 map(map&) nogil except +
24 U& operator[](T&) nogil
26 bint operator==(map&, map&) nogil
27 bint operator!=(map&, map&) nogil
28 bint operator<(map&, map&) nogil
29 bint operator>(map&, map&) nogil
30 bint operator<=(map&, map&) nogil
31 bint operator>=(map&, map&) nogil
33 iterator begin() nogil
34 #const_iterator begin()
36 size_t count(T&) nogil
40 pair[iterator, iterator] equal_range(T&) nogil
41 #pair[const_iterator, const_iterator] equal_range(key_type&)
42 void erase(iterator) nogil
43 void erase(iterator, iterator) nogil
44 size_t erase(T&) nogil
45 iterator find(T&) nogil
46 #const_iterator find(key_type&)
47 pair[iterator, bint] insert(pair[T, U]) nogil # XXX pair[T,U]&
48 iterator insert(iterator, pair[T, U]) nogil # XXX pair[T,U]&
49 #void insert(input_iterator, input_iterator)
50 #key_compare key_comp()
51 iterator lower_bound(T&) nogil
52 #const_iterator lower_bound(key_type&)
53 size_t max_size() nogil
54 reverse_iterator rbegin() nogil
55 #const_reverse_iterator rbegin()
56 reverse_iterator rend() nogil
57 #const_reverse_iterator rend()
60 iterator upper_bound(T&) nogil
61 #const_iterator upper_bound(key_type&)
62 #value_compare value_comp()