aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic
Commit message (Collapse)AuthorAgeFilesLines
* Library import 2 (#639)AlexSm2023-12-221-4/+5
|
* Intermediate changesrobot-piglet2023-12-172-70/+70
|
* detect dangling references in TMaybe objectswarmer2023-12-161-18/+18
|
* detect dangling references in MapFindPtr and utility helpersswarmer2023-12-152-11/+15
|
* Replace rep.erase with rep.erase_one in THashSet::erasenocomer2023-12-141-1/+1
|
* Introduce convenient _B literal for bytesthegeorg2023-12-131-0/+4
|
* [util] Store policy should preserve constructor's is_constructible traitswarmer2023-12-072-7/+34
| | | | Without constraints on the types of arguments, it is possible that creating an instance of `Policy<T>{}` leads to a compilation error, although immediately before that, checking `std::is_default_constructible_v<TPolicy<T>>` returned `true` value
* Use a new empty string instead of NullStr when constructing TString from ↵vadim-xd2023-11-201-3/+4
| | | | TReserveTag or TUninitialized
* Added HasFlag/Remove Flag for operations with one value, added HasAnyOfFlags.kshalnev2023-10-272-6/+29
|
* Y_FAIL->Y_ABORT at '^util'ilnurkh2023-10-172-2/+2
| | | | https://clubs.at.yandex-team.ru/arcadia/29404
* fix comment in utililnurkh2023-10-121-1/+1
|
* Y_VERIFY->Y_ABORT_UNLESS at ^uilnurkh2023-10-106-9/+9
| | | | https://clubs.at.yandex-team.ru/arcadia/29404
* Add global user-defined literal for TStringBufvadim-xd2023-10-072-0/+10
|
* aliases for checking macrosesilnurkh2023-10-062-7/+11
| | | | https://clubs.at.yandex-team.ru/arcadia/29404
* Add THashMultiMap::equal_range_i so new element could be emplaced after ↵osidorkin2023-09-152-0/+16
| | | | | | checking multiple elements with the given key withoute extra hashing По аналогии с find_i: хочется после проверки набора значений с данным ключом, вставить (или не вставлять) еще одно с тем же ключом. Добавляю метод, который позволит не считать хэш при вставке
* (no commit message)pg2023-08-201-8/+8
|
* Add ctors for TStorageBase to fix TMaybe instantiation for move-only types ↵nocomer2023-08-181-1/+13
| | | | which are trivially move-constructible
* TString: improve `operator+` rvalue overloadsignatloskutov2023-08-101-2/+7
| | | | The missing `(TCharType, TBasicString&&)` overload added, so no allocation is performed if the string has spare capacity.
* Make CeilDiv function constexprilezhankin2023-06-301-3/+7
|
* Require semicolon after Y_DECLARE*_FLAGSbulatman2023-06-242-10/+11
|
* add ymake export to ydbalexv-smirnov2023-06-133-0/+109
|
* Remove extra semicolon (util)bulatman2023-06-126-8/+8
|
* TMapOps::Value: better return typeignatloskutov2023-06-022-5/+5
| | | | | | | | Выбирается общий тип, а не тип значения в мапе (но не ссылка, потому что auto), что позволяет писать код в духе: ```cpp TMaybe<int> Foo(THashMap<long, int>& map, long key) { return map.Value(key, TMaybe<int>()); } ```
* Remove using of extra semicolons in utilbulatman2023-05-044-6/+6
|
* Revert ymake build from ydb oss exportalexv-smirnov2023-03-283-109/+0
|
* (no commit message)pg2023-03-284-18/+18
|
* add library/cpp/actors, ymake build to ydb oss exportalexv-smirnov2023-03-153-0/+109
|
* Fix grammar in "yexception.h"r-andrey2023-01-281-6/+6
|
* TSharedPtr::As()&: leakage fixsv-denisov2023-01-142-6/+59
| | | | | | По следам https://a.yandex-team.ru/review/2996409/details Исправлены случаи при неудачных кастах: 1. контрольный блок дёргается даже при указании на nullptr (нехорошо для атомиков) 2. если исходный шаред поинтер разрушится раньше, чем полученный nullptr (например, при возврате из функции), то ресурс утечёт
* [util]TLazyValue: remove operator bool and Definedtldr2022-10-112-15/+11
|
* [util] Fix TFunctionRef under MSVCsskvor2022-10-071-2/+19
|
* util: add .As<T> to TSharedPtrionagamed2022-10-012-1/+76
|
* split hash.h into hash.h and multi_hash_map.htobo2022-09-151-1/+1
|
* prepare to split hash.h into hash_table.h hash.h and multi_hash_map.htobo2022-09-099-1755/+1770
|
* [util] Fix: add missing .cpp for function_refsskvor2022-08-251-0/+1
|
* added limit parameterbbiff2022-08-242-0/+272
|
* [util] Add specializations for const / ref qualified member functionssskvor2022-08-242-10/+94
|
* Do not override contains() method which is present is STLthegeorg2022-08-232-18/+0
|
* Switch TString and TStringBase to std::reverse_iteratorthegeorg2022-08-213-56/+9
| | | At the time an attempt to use e. g. `std::find_if` with `TString::rbegin()` / `TString::rend()` does not compile against `-DUSE_STL_SYSTEM` / modern libstdc++.
* Mark clear and reset methods as reinitializing the object.halyavin2022-08-056-34/+41
| | | | | This means, that moved-from object can be safely used after the call of such method. This attribute is used by clang-tidy which checks that moved-from objects are not used unless a reinitialization method is called first.
* [util] prefer non-const begin/end method for non-const containers in ↵swarmer2022-07-192-3/+23
| | | | | | | | | | AdjacentFind* functions AdjacentFind и AdjacentFindBy принимали контейнер по константной ссылке и из-за этого возвращали константный итератор. Стоит для некостантного контейнера возвращать также неконстантный итератор (если он есть). Это позволит 1. использовать итератор для модификации контейнера; 2. обойти проблему, когда методы `end()` и `cend()`/`std::as_const(…).end()` возвращают итераторы разных типов, которые нельзя сравнивать, либо для которых выбор оператора сравнения неоднозначен.
* Add ydb changelogbazeltsev2022-07-111-0/+1
| | | updated
* fix ya.makemonster2022-07-0720-1082/+0
|
* util: Drop NO_CITYHASH point of customisationthegeorg2022-06-281-2/+2
| | | | ref:613556c5a389af24a29e4fdef6ec5dfeee33bd39
* Stop providing non-inlined MurmurHashSizeTthegeorg2022-06-271-2/+3
| | | | ref:7e797cda3221e4c1905f5e443a9342db82e66883
* IGNIETFERRO-1922 Move atomics from util to library/cpp/deprecatedeeight2022-06-151-1/+0
| | | | ref:0c3b0edd3284567c45ec77e57166274f3cfed8c7
* [enum_parser] generate ToStringBuf specializationswarmer2022-06-131-0/+8
| | | | | | IGNIETFERRO-1350 ref:bb9bb1755b6abfc5a27639daf049b8a7cd748fe4
* [util] AdjacentFind + AdjacentFindByswarmer2022-06-102-0/+58
| | | | ref:76575abc5c39caf128339b56115c217c15766b51
* IGNIETFERRO-1105 -> Top level t-zeeight2022-06-091-1/+1
| | | | ref:e0e9801df5ee25dfbcfcb5974271dfd7dac8216c
* Add missing map_ut.pyx to util/generic/ut_cythonthegeorg2022-06-032-0/+4
| | | | ref:ccf13829e6e56d0e31ff3fab73f19915f1539e5c