summaryrefslogtreecommitdiffstats
path: root/util/generic
Commit message (Collapse)AuthorAgeFilesLines
* [util] Check lifetime of the move-only type passed through the ↵swarmer2024-06-142-0/+34
| | | | | | TMaybe::GetOrElse method 03109df768118daa8c95e373de082712a2362407
* [util] Instantiation of TMaybe with an array type is ill-formedswarmer2024-06-141-0/+2
| | | | 69e5abfadd994602479be713abb69e2d6053734d
* Add TStringBuf constructor from TStringBuf with other char traitsvadim-xd2024-06-071-0/+6
| | | | e4ebd9ac2108f3fbc5ef852f3f7d733dd1a00fe8
* [util] do not instantiate the vector::resize_uninitialized method for ↵swarmer2024-05-091-8/+4
| | | | | | non-POD types f65acbd8a0dd649475720d2cf487bc63ecb8b284
* YT-21402: Adjust util's IntrusiveList to support more convenient use in ↵arkady-e1ppa2024-04-281-6/+27
| | | | | | | lockfree algorithms (and farewell SimpleIntrusiveList) Should be done 8a7cafa1f535df785680b70b488a2e4fbb46b1b0
* Construct TStringBufs in TString::Join earliervadim-xd2024-04-241-5/+13
| | | | d1c15e5770c2a6a72226f3c4c76810231e4f9fe3
* refactor in vectortema-m2024-04-141-3/+3
| | | | | some refactor in vector 2c11be2b50c10b1786950201317ef103cff8c79a
* Intermediate changesrobot-piglet2024-04-023-6/+0
|
* WebAssembly in utildtorilov2024-03-281-1/+1
| | | | b46c1e446c9d0f9393bf688b26db810f60add0f6
* [util] Handle the negative zero value in the NumericHashswarmer2024-03-221-0/+23
| | | | | Two equal numbers must produce the same hash value. 35bb6ef6de3ccbb3b5cacd09950a21063814b499
* update CPP_STYLE_TEST_14 to CPP_STYLE_TEST_16: ^utilionagamed2024-03-122-6/+7
| | | | f25fb42bc8bd1b7423721fa3a0f85ef2bb8f8d97
* Update libcxx to llvmorg-17.0.6hiddenpath2024-02-211-2/+2
| | | | | Update libcxx to llvmorg-17.0.6 c871ef572c71b4fef22d4a9e65bcebc57e625aea
* Use global ns for TFlagspetrk2024-02-201-4/+4
| | | | e2d4d0cc183a95092f8a3924a5992ba09b6dc670
* Do not allow multiplication of TString and pointerkshalnev2024-02-141-0/+13
|
* Intermediate changesrobot-piglet2024-02-141-10/+10
|
* TMaybe Monadic operationsnedaiborschd2024-02-022-0/+229
| | | | | Add monadic operations to TMaybe. Added methods: AndThen, OrElse, Transform.
* check lifetime bounds of values returned from String's c_str(), data() methodsswarmer2024-02-011-16/+16
|
* Add missed #include <type_traits>mikhnenko2024-01-301-0/+4
|
* [util] TSystemError: print raw error code along with the messagetldr2024-01-261-3/+5
| | | | | | На Windows сложно найти, какой ошибке соответствует конкретное сообщение, потому что сообщения даже разные в разных локалях. Полезно иметь сырой код ошибки, чтобы проще было понять, что была за ошибка
* Fix error in TArrayRef constructor for a container: Elements with a ↵akhropov2024-01-221-0/+3
| | | | different size should not be accepted even if they are convertible to TArrayRef value type.
* 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
|