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

Method Swap

library/cpp/json/ordered_maps/json_value_ordered.cpp:1046–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1044 }
1045
1046 void TJsonValue::Swap(TJsonValue& rhs) noexcept {
1047 TJsonValue tmp(std::move(*this));
1048 rhs.SwapWithUndefined(*this);
1049 tmp.SwapWithUndefined(rhs);
1050 }
1051
1052 void TJsonValue::Save(IOutputStream* s) const {
1053 GetNonOrderedJsonValue().Save(s);

Callers 2

Y_UNIT_TESTFunction · 0.45

Calls 2

moveFunction · 0.50
SwapWithUndefinedMethod · 0.45

Tested by

no test coverage detected