diff options
author | Sergey Lisitsyn <lisitsyn@hey.com> | 2022-02-10 16:48:19 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:19 +0300 |
commit | c9e1915ecc1c41fac307cfc13afbd8b06c44f3df (patch) | |
tree | 7e5132d6c718fb78b6631d3d3798c7cf5785bf5e /util/generic/map.pxd | |
parent | 04f02f891129c1f4e70d2ba4a3c0f9b1978b5f36 (diff) | |
download | ydb-c9e1915ecc1c41fac307cfc13afbd8b06c44f3df.tar.gz |
Restoring authorship annotation for Sergey Lisitsyn <lisitsyn@hey.com>. Commit 1 of 2.
Diffstat (limited to 'util/generic/map.pxd')
-rw-r--r-- | util/generic/map.pxd | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/util/generic/map.pxd b/util/generic/map.pxd index 5c9fc32804..3d9e2bdb91 100644 --- a/util/generic/map.pxd +++ b/util/generic/map.pxd @@ -1,46 +1,46 @@ -from libcpp.pair cimport pair - -cdef extern from "util/generic/map.h" nogil: - cdef cppclass TMap[T, U]: - cppclass iterator: - pair[T, U]& operator*() - iterator operator++() - iterator operator--() - bint operator==(iterator) - bint operator!=(iterator) - - cppclass const_iterator(iterator): - pass - - TMap() except + - TMap(TMap&) except + - U& operator[](T&) - TMap& operator=(TMap&) - - bint operator==(TMap&) - bint operator!=(TMap&) - bint operator<(TMap&) - bint operator>(TMap&) - bint operator<=(TMap&) - bint operator>=(TMap&) - - U& at(T&) except + - iterator begin() - const_iterator const_begin "begin"() - void clear() - size_t count(T&) - bint empty() - iterator end() - const_iterator const_end "end"() - pair[iterator, iterator] equal_range(T&) - void erase(iterator) except + - void erase(iterator, iterator) except + - size_t erase(T&) - iterator find(T&) - bint contains(T&) - const_iterator const_find "find"(T&) - pair[iterator, bint] insert(pair[T, U]) # XXX pair[T,U]& - iterator insert(iterator, pair[T, U]) # XXX pair[T,U]& - size_t max_size() - size_t size() - void swap(TMap&) +from libcpp.pair cimport pair + +cdef extern from "util/generic/map.h" nogil: + cdef cppclass TMap[T, U]: + cppclass iterator: + pair[T, U]& operator*() + iterator operator++() + iterator operator--() + bint operator==(iterator) + bint operator!=(iterator) + + cppclass const_iterator(iterator): + pass + + TMap() except + + TMap(TMap&) except + + U& operator[](T&) + TMap& operator=(TMap&) + + bint operator==(TMap&) + bint operator!=(TMap&) + bint operator<(TMap&) + bint operator>(TMap&) + bint operator<=(TMap&) + bint operator>=(TMap&) + + U& at(T&) except + + iterator begin() + const_iterator const_begin "begin"() + void clear() + size_t count(T&) + bint empty() + iterator end() + const_iterator const_end "end"() + pair[iterator, iterator] equal_range(T&) + void erase(iterator) except + + void erase(iterator, iterator) except + + size_t erase(T&) + iterator find(T&) + bint contains(T&) + const_iterator const_find "find"(T&) + pair[iterator, bint] insert(pair[T, U]) # XXX pair[T,U]& + iterator insert(iterator, pair[T, U]) # XXX pair[T,U]& + size_t max_size() + size_t size() + void swap(TMap&) |