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

Function Clone

util/generic/string.h:233–235  ·  view source on GitHub ↗

* Makes a distinct copy of this string. `IsDetached()` is always true after this call. * * @throw std::length_error */

Source from the content-addressed store, hash-verified

231 * @throw std::length_error
232 */
233 void Clone() {
234 Construct(StdStr()).Swap(S_);
235 }
236
237 size_t RefCount() const noexcept {
238 return S_.RefCount();

Callers 1

string.hFile · 0.70

Calls 2

ConstructFunction · 0.70
SwapMethod · 0.45

Tested by

no test coverage detected