aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/containers/comptrie/search_iterator.h
diff options
context:
space:
mode:
authorsamoylovboris <samoylovboris@yandex-team.ru>2022-02-10 16:49:56 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:56 +0300
commitb1a065aac47f61f2d8e3670ace40bd939af406f9 (patch)
tree5bc8bb26dba963009dd047e185fc896aea36cdc3 /library/cpp/containers/comptrie/search_iterator.h
parent149d2fda2c7501b0e9f26325f72aaec213e93611 (diff)
downloadydb-b1a065aac47f61f2d8e3670ace40bd939af406f9.tar.gz
Restoring authorship annotation for <samoylovboris@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/containers/comptrie/search_iterator.h')
-rw-r--r--library/cpp/containers/comptrie/search_iterator.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/library/cpp/containers/comptrie/search_iterator.h b/library/cpp/containers/comptrie/search_iterator.h
index 247f7e5936..07dcc75921 100644
--- a/library/cpp/containers/comptrie/search_iterator.h
+++ b/library/cpp/containers/comptrie/search_iterator.h
@@ -41,17 +41,17 @@ public:
{
}
- bool operator==(const TSearchIterator& other) const {
+ bool operator==(const TSearchIterator& other) const {
Y_ASSERT(Trie && other.Trie);
- return Trie == other.Trie &&
- DataPos == other.DataPos &&
- DataEnd == other.DataEnd &&
- ValuePos == other.ValuePos;
- }
- bool operator!=(const TSearchIterator& other) const {
- return !(*this == other);
- }
-
+ return Trie == other.Trie &&
+ DataPos == other.DataPos &&
+ DataEnd == other.DataEnd &&
+ ValuePos == other.ValuePos;
+ }
+ bool operator!=(const TSearchIterator& other) const {
+ return !(*this == other);
+ }
+
inline bool Advance(TSymbol label) {
Y_ASSERT(Trie);
if (DataPos == nullptr || DataPos >= DataEnd) {
@@ -132,9 +132,9 @@ bool TSearchIterator<TTrie>::HasValue() const {
template <class TTrie>
inline size_t TSearchIterator<TTrie>::GetHash() const {
Y_ASSERT(Trie);
- return MultiHash(
- static_cast<const void*>(Trie),
- static_cast<const void*>(DataPos),
- static_cast<const void*>(DataEnd),
- static_cast<const void*>(ValuePos));
+ return MultiHash(
+ static_cast<const void*>(Trie),
+ static_cast<const void*>(DataPos),
+ static_cast<const void*>(DataEnd),
+ static_cast<const void*>(ValuePos));
}