20
General utilities library
[utilities]
20.11
Smart pointers
[smartptr]
20.11.1
Class template
unique_ptr
[unique.ptr]
20.11.1.3
unique_ptr
for single objects
[unique.ptr.single]
20.11.1.3.3
Destructor
[unique.ptr.single.dtor]
🔗
~
unique_ptr
(
)
;
1
#
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
]
2
#
Effects
: If
get
(
)
=
=
nullptr
there are no effects
.
Otherwise
get_deleter
(
)
(
get
(
)
)
.