[unique.ptr.single.dtor] (original) (raw)
20 Memory management library [mem]
20.3 Smart pointers [smartptr]
20.3.1 Unique-ownership pointers [unique.ptr]
20.3.1.3 unique_ptr for single objects [unique.ptr.single]
20.3.1.3.3 Destructor [unique.ptr.single.dtor]
constexpr ~unique_ptr();
Effects: Equivalent to:if (get()) get_deleter()(get());
[Note 1:
The use of default_delete requires T to be a complete type.
— _end note_]
Remarks: The behavior is undefined if the evaluation of get_deleter()(get()) throws an exception.