Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ apply
Method
apply
src/core/include/megbrain/utils/big_key_hashmap.h:94–94 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
92
std::unique_ptr<T> ptr;
93
ToOwn(Ref& r) : ref{r}, ptr{new T{*ref.m_key}} {}
94
void apply() { ref.m_key = ptr.release(); }
95
};
96
97
Ref() = default;
Callers
1
to_owned
Method · 0.45
Calls
1
release
Method · 0.45
Tested by
no test coverage detected