MCPcopy Create free account
hub / github.com/catboost/catboost / ReverseInPlace

Function ReverseInPlace

util/string/reverse.cpp:9–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include <algorithm>
8
9void ReverseInPlace(TString& string) {
10 auto* begin = string.begin();
11 std::reverse(begin, begin + string.size());
12}
13
14void ReverseInPlace(TUtf16String& string) {
15 auto* begin = string.begin();

Callers 3

CollapseTextFunction · 0.70
TestFuncsMethod · 0.50
TestWideStringMethod · 0.50

Calls 7

W16SymbolSizeFunction · 0.85
reverseFunction · 0.50
copyFunction · 0.50
beginMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45
endMethod · 0.45

Tested by 2

TestFuncsMethod · 0.40
TestWideStringMethod · 0.40