diff options
author | AlexSm <alex@ydb.tech> | 2024-08-19 16:16:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-19 17:16:30 +0300 |
commit | 9b567afd3339f4525feab53873592cb025b14251 (patch) | |
tree | 5c8489f98dc5a9a10f66065055e5a401bbd14767 /util/generic/strbuf.h | |
parent | 47bd121575c210d4bbb2dddcc2131759a694df05 (diff) | |
download | ydb-9b567afd3339f4525feab53873592cb025b14251.tar.gz |
Library import 240819-0942 (#7994)
Co-authored-by: robot-piglet <robot-piglet@yandex-team.com>
Co-authored-by: hiddenpath <hiddenpath@yandex-team.com>
Co-authored-by: bulatman <bulatman@yandex-team.com>
Co-authored-by: robot-contrib <robot-contrib@yandex-team.com>
Co-authored-by: osidorkin <osidorkin@yandex-team.com>
Co-authored-by: akhropov <akhropov@yandex-team.com>
Co-authored-by: akozhikhov <akozhikhov@yandex-team.com>
Co-authored-by: orlovorlov <orlovorlov@yandex-team.com>
Co-authored-by: babenko <babenko@yandex-team.com>
Co-authored-by: shadchin <shadchin@yandex-team.com>
Co-authored-by: dmasloff <dmasloff@yandex-team.com>
Co-authored-by: aleksei-le <aleksei-le@yandex-team.com>
Co-authored-by: coteeq <coteeq@yandex-team.com>
Co-authored-by: dimdim11 <dimdim11@yandex-team.com>
Co-authored-by: robot-ya-builder <robot-ya-builder@yandex-team.com>
Co-authored-by: iaz1607 <iaz1607@yandex-team.com>
Diffstat (limited to 'util/generic/strbuf.h')
-rw-r--r-- | util/generic/strbuf.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/generic/strbuf.h b/util/generic/strbuf.h index 27237b1a32..3f946775dc 100644 --- a/util/generic/strbuf.h +++ b/util/generic/strbuf.h @@ -23,8 +23,8 @@ public: using char_type = TCharType; // TODO: DROP using traits_type = TTraits; - //Resolving some ambiguity between TStringBase and std::basic_string_view - //for typenames + // Resolving some ambiguity between TStringBase and std::basic_string_view + // for typenames using typename TStringView::const_iterator; using typename TStringView::const_reference; using typename TStringView::const_reverse_iterator; @@ -34,10 +34,10 @@ public: using typename TStringView::size_type; using typename TStringView::value_type; - //for constants + // for constants using TStringView::npos; - //for methods and operators + // for methods and operators using TStringView::begin; using TStringView::cbegin; using TStringView::cend; @@ -463,7 +463,7 @@ public: // string subsequences /// Sets the start pointer to a position relative to the end inline TdSelf& RSeek(size_t tailSize) noexcept { if (size() > tailSize) { - //WARN: removing TStringView:: will lead to an infinite recursion + // WARN: removing TStringView:: will lead to an infinite recursion *this = TStringView::substr(size() - tailSize, tailSize); } @@ -476,7 +476,7 @@ public: // string subsequences // exn_spec_violation: An exception of type "std::out_of_range" is thrown but the exception specification "noexcept" doesn't allow it to be thrown. This will result in a call to terminate(). // fun_call_w_exception: Called function TStringView::substr throws an exception of type "std::out_of_range". // Suppress this issue because we pass argument pos=0 and string_view can't throw std::out_of_range. - *this = TStringView::substr(0, targetSize); //WARN: removing TStringView:: will lead to an infinite recursion + *this = TStringView::substr(0, targetSize); // WARN: removing TStringView:: will lead to an infinite recursion return *this; } |