Destructible
C++ concepts: Destructible
Specifies that an instance of the type can be destructed.
Requirements
The type T
satisfies Destructible
if.
Given.
-
u
, a expression of typeT
The following expressions must be valid and have their specified effects.
Expression | Post-conditions |
---|---|
u.~T() | All resources owned by u are reclaimed, no exceptions are thrown. |
Notes
Destructors are called implicitly at the end of object lifetime such as when leaving scope or by the 登录查看完整内容