Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Oneflow-Inc/oneflow
/ UniqueInt
Method
UniqueInt
oneflow/maybe/just_test.cpp:231–231 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
229
void drop() { x = -333; }
230
231
explicit UniqueInt(int x) : x{x} {}
232
UniqueInt(const UniqueInt& i) = delete;
233
UniqueInt(UniqueInt&& i) noexcept : x{i.x} { i.drop(); } // NOLINT
234
UniqueInt& operator=(const UniqueInt& i) = delete;
Callers
nothing calls this directly
Calls
1
drop
Method · 0.80
Tested by
no test coverage detected