23 General utilities library [utilities]

23.11 Smart pointers [smartptr]

23.11.1 Class template unique_­ptr [unique.ptr] unique_­ptr for single objects [unique.ptr.single] unique_­ptr destructor [unique.ptr.single.dtor]


Requires: The expression get_­deleter()(get()) shall be well formed, shall have well-defined behavior, and shall not throw exceptions. [Note: 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()).