MCPcopy 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_ownedMethod · 0.45

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected