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

Method reset

unittests/catch.hpp:3498–3502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3496 }
3497
3498 void reset() {
3499 if( nullableValue )
3500 nullableValue->~T();
3501 nullableValue = nullptr;
3502 }
3503
3504 T& operator*() { return *nullableValue; }
3505 T const& operator*() const { return *nullableValue; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected