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

Function Attach

util/generic/ptr_ut.cpp:338–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336};
337
338void Attach(TOp3* op3, TIntrusivePtr<TOp>* op) {
339 TIntrusivePtr<TOp2> op2 = new TOp2(*op);
340 op3->Op2 = op2.Get();
341 *op = op2.Get();
342}
343
344void TPointerTest::TestIntrPtr() {
345 {

Callers 1

TestIntrPtrMethod · 0.85

Calls 1

GetMethod · 0.45

Tested by 1

TestIntrPtrMethod · 0.68