20 General utilities library [utilities]

20.11 Smart pointers [smartptr]

20.11.1 Class template unique_­ptr [unique.ptr] unique_­ptr for single objects [unique.ptr.single] Destructor [unique.ptr.single.dtor]

Preconditions: The expression get_­deleter()(get()) is well-formed, has well-defined behavior, and does not throw exceptions.
[Note 1:
The use of default_­delete requires T to be a complete type.
— end note]
Effects: If get() == nullptr there are no effects.
Otherwise get_­deleter()(get()).