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

Function swap

library/cpp/yt/memory/blob.cpp:224–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void swap(TBlob& left, TBlob& right)
225{
226 if (&left != &right) {
227 std::swap(left.Begin_, right.Begin_);
228 std::swap(left.Size_, right.Size_);
229 std::swap(left.Capacity_, right.Capacity_);
230 std::swap(left.PageAligned_, right.PageAligned_);
231#ifdef YT_ENABLE_REF_COUNTED_TRACKING
232 std::swap(left.TagCookie_, right.TagCookie_);
233#endif
234 }
235}
236
237////////////////////////////////////////////////////////////////////////////////
238

Callers 12

SwapMethod · 0.50
stack.cppFile · 0.50
cow_string.hFile · 0.50
SwapMethod · 0.50
swapMethod · 0.50
TTableClass · 0.50
RehashImplMethod · 0.50
SwapMethod · 0.50
NewRequestMethod · 0.50
TryFillArrayMethod · 0.50
TWriteMethod · 0.50
with_lockFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected