diff options
author | Mikhail Borisov <borisov.mikhail@gmail.com> | 2022-02-10 16:45:40 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:40 +0300 |
commit | 5d50718e66d9c037dc587a0211110b7d25a66185 (patch) | |
tree | e98df59de24d2ef7c77baed9f41e4875a2fef972 /util/generic/vector.pxd | |
parent | a6a92afe03e02795227d2641b49819b687f088f8 (diff) | |
download | ydb-5d50718e66d9c037dc587a0211110b7d25a66185.tar.gz |
Restoring authorship annotation for Mikhail Borisov <borisov.mikhail@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/generic/vector.pxd')
-rw-r--r-- | util/generic/vector.pxd | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/util/generic/vector.pxd b/util/generic/vector.pxd index 1675abb609..99dde95d48 100644 --- a/util/generic/vector.pxd +++ b/util/generic/vector.pxd @@ -1,4 +1,4 @@ -cdef extern from "<util/generic/vector.h>" nogil: +cdef extern from "<util/generic/vector.h>" nogil: cdef cppclass TVector[T]: cppclass iterator: T& operator*() @@ -12,67 +12,67 @@ cdef extern from "<util/generic/vector.h>" nogil: bint operator>(iterator) bint operator<=(iterator) bint operator>=(iterator) - + cppclass reverse_iterator: T& operator*() - reverse_iterator operator++() - reverse_iterator operator--() - reverse_iterator operator+(size_t) - reverse_iterator operator-(size_t) + reverse_iterator operator++() + reverse_iterator operator--() + reverse_iterator operator+(size_t) + reverse_iterator operator-(size_t) 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): pass - + cppclass const_reverse_iterator(reverse_iterator): pass - + TVector() except + TVector(TVector&) except + TVector(size_t) except + TVector(size_t, T&) except + - + bint operator==(TVector&) bint operator!=(TVector&) bint operator<(TVector&) bint operator>(TVector&) bint operator<=(TVector&) bint operator>=(TVector&) - - void assign(size_t, const T&) except + + + void assign(size_t, const T&) except + void assign[input_iterator](input_iterator, input_iterator) except + - + T& at(size_t) except + - T& operator[](size_t) - + T& operator[](size_t) + T& back() iterator begin() const_iterator const_begin "begin"() size_t capacity() - void clear() except + + void clear() except + bint empty() iterator end() const_iterator const_end "end"() - iterator erase(iterator) except + - iterator erase(iterator, iterator) except + + iterator erase(iterator) except + + iterator erase(iterator, iterator) except + T& front() iterator insert(iterator, const T&) except + void insert(iterator, size_t, const T&) except + void insert[Iter](iterator, Iter, Iter) except + size_t max_size() - void pop_back() except + + void pop_back() except + void push_back(T&) except + void emplace_back(...) except + reverse_iterator rbegin() const_reverse_iterator const_rbegin "rbegin"() reverse_iterator rend() const_reverse_iterator const_rend "rend"() - void reserve(size_t) except + + void reserve(size_t) except + void resize(size_t) except + void resize(size_t, T&) except + size_t size() @@ -80,4 +80,4 @@ cdef extern from "<util/generic/vector.h>" nogil: # C++11 methods T* data() - void shrink_to_fit() except + + void shrink_to_fit() except + |