<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ydb/util/generic/algorithm.h, branch CLI_2.19.0</title>
<subtitle>Mirror of YDB github repos</subtitle>
<id>https://code.mastervirt.ru/ydb/atom?h=CLI_2.19.0</id>
<link rel='self' href='https://code.mastervirt.ru/ydb/atom?h=CLI_2.19.0'/>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/'/>
<updated>2024-09-26T19:29:56Z</updated>
<entry>
<title>Support move-only key types in the Max/MinElementBy routines</title>
<updated>2024-09-26T19:29:56Z</updated>
<author>
<name>swarmer</name>
<email>swarmer@yandex-team.com</email>
</author>
<published>2024-09-26T19:15:27Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=9598e6ce746a6ae937ccc291c9c5e64db14ce62e'/>
<id>urn:sha1:9598e6ce746a6ae937ccc291c9c5e64db14ce62e</id>
<content type='text'>
It is also slightly faster for non-trivial key types.
commit_hash:4104cabfe8dc9a51174034c62aae25be16b57bf9
</content>
</entry>
<entry>
<title>FixNamespaceComments in /util</title>
<updated>2024-09-05T17:17:10Z</updated>
<author>
<name>dmasloff</name>
<email>dmasloff@yandex-team.com</email>
</author>
<published>2024-09-05T17:05:47Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=74184a40c15dc0649a769d9754d0ce7efb44db04'/>
<id>urn:sha1:74184a40c15dc0649a769d9754d0ce7efb44db04</id>
<content type='text'>
FixNamespaceComments in /util
bb9152570d7c258798644ead5a59f604de05ef3b
</content>
</entry>
<entry>
<title>Set SpacesInLineCommentPrefix to 1 in /util</title>
<updated>2024-08-17T20:43:45Z</updated>
<author>
<name>dmasloff</name>
<email>dmasloff@yandex-team.com</email>
</author>
<published>2024-08-17T20:33:42Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=69340f4614e853b9319df4b454ab7497711ee3cd'/>
<id>urn:sha1:69340f4614e853b9319df4b454ab7497711ee3cd</id>
<content type='text'>
Set SpacesInLineCommentPrefix to 1 in /util
3853f9ec5143722c1bebd8dc0ffc9b61a6c17657
</content>
</entry>
<entry>
<title>util: simpler implementation of the `EqualToOneOf` and `CountOf` algorithms using the fold expression</title>
<updated>2024-08-07T21:34:39Z</updated>
<author>
<name>swarmer</name>
<email>swarmer@yandex-team.com</email>
</author>
<published>2024-08-07T21:09:18Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=38cff6773bff060c5772a03ad45f5d4b6ef8afe1'/>
<id>urn:sha1:38cff6773bff060c5772a03ad45f5d4b6ef8afe1</id>
<content type='text'>
62d55507536a408dd9c37a5497efaa0a1333cc6c
</content>
</entry>
<entry>
<title>check the lifetime bound of the MinMax algo</title>
<updated>2024-08-07T21:27:34Z</updated>
<author>
<name>swarmer</name>
<email>swarmer@yandex-team.com</email>
</author>
<published>2024-08-07T21:09:13Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=464addc69515ab37bf1f3ecb46d7b802c259f4eb'/>
<id>urn:sha1:464addc69515ab37bf1f3ecb46d7b802c259f4eb</id>
<content type='text'>
fdef98a22a11016e54d3e0eadbebddce5f68e83d
</content>
</entry>
<entry>
<title>[util] prefer non-const begin/end method for non-const containers in AdjacentFind* functions</title>
<updated>2022-07-19T07:51:56Z</updated>
<author>
<name>swarmer</name>
<email>swarmer@yandex-team.com</email>
</author>
<published>2022-07-19T07:51:56Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=c64ee34d9c321fa796868ddca03dddb174704107'/>
<id>urn:sha1:c64ee34d9c321fa796868ddca03dddb174704107</id>
<content type='text'>
AdjacentFind и AdjacentFindBy принимали контейнер по константной ссылке и из-за этого возвращали константный итератор.

Стоит для некостантного контейнера возвращать также неконстантный итератор (если он есть). 
Это позволит 
1. использовать итератор для модификации контейнера;
2. обойти проблему, когда методы `end()` и `cend()`/`std::as_const(…).end()` возвращают итераторы разных типов, которые нельзя сравнивать, либо для которых выбор оператора сравнения неоднозначен.</content>
</entry>
<entry>
<title>[util] AdjacentFind + AdjacentFindBy</title>
<updated>2022-06-10T00:48:46Z</updated>
<author>
<name>swarmer</name>
<email>swarmer@yandex-team.ru</email>
</author>
<published>2022-06-10T00:48:46Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=649b24b6e528a274568b079f18aed32b07d1a9f3'/>
<id>urn:sha1:649b24b6e528a274568b079f18aed32b07d1a9f3</id>
<content type='text'>
ref:76575abc5c39caf128339b56115c217c15766b51
</content>
</entry>
<entry>
<title>[util] IsSortedBy for containers</title>
<updated>2022-06-01T22:34:52Z</updated>
<author>
<name>swarmer</name>
<email>swarmer@yandex-team.ru</email>
</author>
<published>2022-06-01T22:34:52Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=dec29e24bcc1d4208ad6f72e60c5b70037a4748d'/>
<id>urn:sha1:dec29e24bcc1d4208ad6f72e60c5b70037a4748d</id>
<content type='text'>
ref:6c01516241e312227b7654b6b0260add648c8609
</content>
</entry>
<entry>
<title>[util] constexpr для алгоритмов</title>
<updated>2022-06-01T03:11:45Z</updated>
<author>
<name>swarmer</name>
<email>swarmer@yandex-team.ru</email>
</author>
<published>2022-06-01T03:11:45Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=915804dc0bd9143e3cdbbe71927598c5023cbecc'/>
<id>urn:sha1:915804dc0bd9143e3cdbbe71927598c5023cbecc</id>
<content type='text'>
ref:f1a82a410e24de6f4a77f4c8f28ed3401a5516b4
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;yarchi@yandex-team.ru&gt;. Commit 2 of 2.</title>
<updated>2022-02-10T13:52:07Z</updated>
<author>
<name>yarchi</name>
<email>yarchi@yandex-team.ru</email>
</author>
<published>2022-02-10T13:52:07Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=26e5ebf156c32ad632ed87dc310e8d21b2038ebd'/>
<id>urn:sha1:26e5ebf156c32ad632ed87dc310e8d21b2038ebd</id>
<content type='text'>
</content>
</entry>
</feed>
