Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
9
void ReverseInPlace(TString& string) {
10
auto* begin = string.begin();
11
std::reverse(begin, begin + string.size());
12
}
13
14
void ReverseInPlace(TUtf16String& string) {
15
auto* begin = string.begin();
Callers
3
CollapseText
Function · 0.70
TestFuncs
Method · 0.50
TestWideString
Method · 0.50
Calls
7
W16SymbolSize
Function · 0.85
reverse
Function · 0.50
copy
Function · 0.50
begin
Method · 0.45
size
Method · 0.45
data
Method · 0.45
end
Method · 0.45
Tested by
2
TestFuncs
Method · 0.40
TestWideString
Method · 0.40