Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
65
template<typename T>
66
optional<T>::~optional()
67
requires NotTriviallyDestructible<T>
68
{
69
if(has_value) { value.as()->~T(); }
70
}
71
72
template<typename T>
73
optional<T>::~optional()
Callers
nothing calls this directly
Calls
2
as
Method · 0.45
Release
Method · 0.45
Tested by
no test coverage detected