Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
338
void Attach(TOp3* op3, TIntrusivePtr<TOp>* op) {
339
TIntrusivePtr<TOp2> op2 = new TOp2(*op);
340
op3->Op2 = op2.Get();
341
*op = op2.Get();
342
}
343
344
void TPointerTest::TestIntrPtr() {
345
{
Callers
1
TestIntrPtr
Method · 0.85
Calls
1
Get
Method · 0.45
Tested by
1
TestIntrPtr
Method · 0.68