19
General utilities library
[utilities]
19.11
Smart pointers
[smartptr]
19.11.1
Class template
unique_ptr
[unique.ptr]
19.11.1.3
unique_ptr
for array objects with a runtime length
[unique.ptr.runtime]
19.11.1.3.4
Modifiers
[unique.ptr.runtime.modifiers]
🔗
void reset(nullptr_t p = nullptr) noexcept;
1
#
Effects:
Equivalent to
reset(pointer())
.
🔗
template<class U> void reset(U p) noexcept;
2
#
This function behaves the same as the
reset
member of the primary template, except that it shall not participate in overload resolution unless either
(2.1)
U
is the same type as
pointer
, or
(2.2)
pointer
is the same type as
element_type*
,
U
is a pointer type
V*
, and
V(*)[]
is convertible to
element_type(*)[]
.