summaryrefslogtreecommitdiffstats
path: root/util
Commit message (Collapse)AuthorAgeFilesLines
* 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++.
* fix UB in case of empty stringbufasorotsky2022-08-121-1/+5
|
* Introduce TryFromString returning TMaybeevelkin2022-08-092-2/+59
| | | | | | | | | | | Позволяем писать без неиницилизированных переменных по месту использования. Вот такую красоту например: ``` if (auto a = TryFromString<T>(str)) { что-то делаем с \*a } ```
* Mark clear and reset methods as reinitializing the object.halyavin2022-08-057-34/+47
| | | | | 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.
* add [[nodiscard]] attribute to Strip functionstobo2022-08-041-12/+10
|
* TString -> std::string fix TFsPath copyxinull2022-08-013-1/+58
| | | | | Add copy operator and constructor Create copy with initialized split test
* Print escaped path if it contains invalid characterscezarnik2022-07-281-1/+2
|
* remove unused includetobo2022-07-271-1/+0
|
* add functions without overflowyegorskii2022-07-263-0/+31
|
* [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-112-1/+2
| | | updated
* Add logging after applying new GroupInfo,serg-belyakov2022-07-081-1/+1
|
* fix ya.makemonster2022-07-0759-3944/+1
|
* util: Drop NO_CITYHASH point of customisationthegeorg2022-06-282-12/+8
| | | | ref:613556c5a389af24a29e4fdef6ec5dfeee33bd39
* intermediate changesarcadia-devtools2022-06-281-1/+1
| | | | ref:91e6b243cd7f0c53cbafb4f654eced58a4c1e436
* Stop providing non-inlined MurmurHashSizeTthegeorg2022-06-273-10/+6
| | | | ref:7e797cda3221e4c1905f5e443a9342db82e66883
* Allow creating Singlelon during Singleton destruction back againthegeorg2022-06-242-1/+21
| | | | ref:53c837a1fa0289db60812b95b6ac96be23ae018d
* IGNIETFERRO-1922 Move atomics from util to library/cpp/deprecatedeeight2022-06-1512-686/+6
| | | | 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-092-2/+2
| | | | ref:e0e9801df5ee25dfbcfcb5974271dfd7dac8216c
* Pull request "ShufflePart function" by @igormarkov00 from ↵arcadia-devtools2022-06-072-0/+73
| | | | | | | | https://github.com/catboost/catboost/pull/2087 MERGED FROM https://github.com/catboost/catboost/pull/2087 ref:d27dfbe948e17ef1feb8ad2b13b409915afc86c8
* Add missing map_ut.pyx to util/generic/ut_cythonthegeorg2022-06-032-0/+4
| | | | ref:ccf13829e6e56d0e31ff3fab73f19915f1539e5c
* util: Flatten cython tests layoutthegeorg2022-06-037-3/+13
| | | | ref:7427208d08ebeb9e88247fb7dac6445bc814d756
* Add missing source file to ya.makethegeorg2022-06-022-0/+2
| | | | ref:ee42e4700caddee3694c141f1fc89c18e7aff2ac
* [util] IsSortedBy for containersswarmer2022-06-022-0/+11
| | | | ref:6c01516241e312227b7654b6b0260add648c8609
* Flatten util teststhegeorg2022-06-011-1/+1
| | | | ref:0297d20665112368dc5e412e2531f67b3dd3c3ec
* [util] constexpr сравнения для TStringBufswarmer2022-06-012-59/+71
| | | | ref:695923dc5d543fcc10893896407694ebc55f3e84
* [util] constexpr для алгоритмовswarmer2022-06-012-117/+117
| | | | ref:f1a82a410e24de6f4a77f4c8f28ed3401a5516b4
* util: Do not include on Windowsthegeorg2022-05-271-2/+4
| | | | ref:4f285c4cb9d12ff2234491f46dd9d68634f9b9bb
* [util] implement THashMap::insert_or_assign methodswarmer2022-05-262-0/+71
| | | | | | IGNIETFERRO-821 ref:1e4e3b22bff7e806800218d58b1061626ebaa10f
* [util] StripInPlace should modify string in-placeswarmer2022-05-245-22/+132
| | | | ref:2aec19528c2378a0994534ec032550413a095389
* IGNIETFERRO-1105 Get rid of TAtomic in spin_waiteeight2022-05-231-10/+13
| | | | ref:788357fd9a851f54e97a8e0f133dcb3c3e275f92
* IGNIETFERRO-1105 Get rid of TAtomic in system/{atexit, event, shellcommand}eeight2022-05-205-39/+57
| | | | ref:c74bffae7e90dee515f5089979fc050d20a34e4e
* IGNIETFERRO-1105 Get rid of TAtomic in unittestseeight2022-05-194-78/+58
| | | | ref:f4d9cf527b4f26efcc95307ca7b07d1c42ebd11b
* IGNIETFERRO-1105 Get rid of TAtomic in thread/pool.cppeeight2022-05-171-7/+7
| | | | ref:3fa56aa890b75b7301a3193c2ee40106281a71cb
* IGNIETFERRO-1105 Use std::atomic in spinlockeeight2022-05-173-56/+49
| | | | ref:dca14f354fc9b9698f83663ceb0e62e797fe98c5
* piglet: Extract metadata from commit messagethegeorg2022-05-121-0/+5
| | | | | | | * Introduce `CommitMetadata` struct with structured metadata (all the fields are optional) * Drop `class Author` and use `NLibgit2::TSignature` directly instead ref:3aae28cb614b3c611f8abb2b1c12ff114aaed46f
* IGNIETFERRO-1105 TAtomic -> std::atomic in util/generic/* and threadpooleeight2022-05-117-85/+94
| | | | ref:39a714b781c60dca9e3b946d870971076e14ab7c
* include order as code-style recommendIlnur Khuziev2022-05-061-2/+2
| | | | ref:0559fab404c2acebc7471fd7651deec61b5e23e3
* IGNIETFERRO-1105 TAtomic -> std::atomic in util/thread/lfqueue.heeight2022-05-042-80/+71
| | | | ref:8cf44e7b3fecd13c3a0c699a8c1c7abe780eab0b
* IGNIETFERRO-1105 TAtomic -> std::atomic in util/thread/lfstack.heeight2022-04-272-59/+64
| | | | ref:7fac644f716f0423df5d65d6ba11439ca0ca35d1
* IGNIETFERRO-1997 replace Y_VERIFY(exceptionPtr) with 'return "NO EXCEPTION"' ↵chegoryu2022-04-262-5/+13
| | | | | | in FormatCurrentException ref:02c5a1e631a36a1f21b5b7678ecf4e245769dd9e
* Add Collapse variant for utf-32 stringsOleg Sidorkin2022-04-163-5/+32
| | | | ref:5897581c4d2be8d8775525221d2d910c04d788b8
* Fix -Wdeprecated-copy errors detected by clang14thegeorg2022-04-141-1/+2
| | | | ref:7b522d0dad8f0d64dd508e61325124ea9d2ebf30
* Fix computation of hashes for string constantseeight2022-04-072-0/+19
| | | | ref:75452b050cafabe119c50e518c3db644d8d9404f
* remove unused includestobo2022-04-0750-111/+18
| | | | ref:f8c119cf3a796a59ab5be4424e5364ba6a201d40
* Fix newline formatting in FormatCurrentException()svkrasnov2022-03-262-4/+4
| | | | ref:1aefdabc38ec01ea10f53aa279edaa0dee29380d
* Introduce FormatCurrentException() based on TBackTrace::FromCurrentException()svkrasnov2022-03-233-1/+114
| | | | ref:60218909c48b580eebc0b518f039afd46ca51713
* util: Fix -Wunused-but-set-variablekmartynkov2022-03-231-2/+0
| | | | ref:0186c219d9c56c8f183ce0236e33f6d647fe5fa0