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

Method ~optional

01.32-optional5/main.cpp:66–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64
65template<typename T>
66optional<T>::~optional()
67 requires NotTriviallyDestructible<T>
68{
69 if(has_value) { value.as()->~T(); }
70}
71
72template<typename T>
73optional<T>::~optional()

Callers

nothing calls this directly

Calls 2

asMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected