MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / reset

Function reset

extlibs/sol3/include/sol/sol.hpp:4829–4834  ·  view source on GitHub ↗

Destroys the stored value if one exists, making the optional empty

Source from the content-addressed store, hash-verified

4827
4828 /// Destroys the stored value if one exists, making the optional empty
4829 void reset() noexcept {
4830 if (has_value()) {
4831 this->m_value.~T();
4832 this->m_has_value = false;
4833 }
4834 }
4835 }; // namespace sol
4836
4837 /// \group relop

Callers 8

~OptionMethod · 0.85
OptionClass · 0.85
resetMethod · 0.85
handleSignalMethod · 0.85
SIDsoundMethod · 0.85
takeMethod · 0.85
takeMethod · 0.85

Calls 1

has_valueFunction · 0.85

Tested by

no test coverage detected