MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / ~optional

Method ~optional

01.33-optional6/main.cpp:84–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83template<typename T>
84optional<T>::~optional()
85 requires NotTriviallyDestructible<T>
86{
87 if(has_value) { value.as()->~T(); }
88}
89
90template<typename T>
91optional<T>::~optional()

Callers

nothing calls this directly

Calls 2

asMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected