Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Achain-Dev/Achain
/ reset
Method
reset
include/fc/optional.hpp:223–230 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
221
}
222
223
void reset()
224
{
225
if( _valid )
226
{
227
ref().~T(); // cal destructor
228
}
229
_valid = false;
230
}
231
private:
232
template<typename U> friend class optional;
233
T& ref() { return *ptr(); }
Callers
4
from_variant
Function · 0.45
optional
Method · 0.45
optional
Class · 0.45
actor
Method · 0.45
Calls
1
ref
Function · 0.50
Tested by
no test coverage detected