Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
83
template<typename T>
84
optional<T>::~optional()
85
requires NotTriviallyDestructible<T>
86
{
87
if(has_value) { value.as()->~T(); }
88
}
89
90
template<typename T>
91
optional<T>::~optional()
Callers
nothing calls this directly
Calls
2
as
Method · 0.45
Release
Method · 0.45
Tested by
no test coverage detected