MCPcopy 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_variantFunction · 0.45
optionalMethod · 0.45
optionalClass · 0.45
actorMethod · 0.45

Calls 1

refFunction · 0.50

Tested by

no test coverage detected