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.5 Observers [unique.ptr.single.observers]

add_lvalue_reference_t<T> operator*() const;
Preconditions: get() != nullptr.
Returns: *get().
pointer operator->() const noexcept;
Preconditions: get() != nullptr.
Returns: get().
[Note 1:
The use of this function typically requires that T be a complete type.
— end note]
pointer get() const noexcept;
Returns: The stored pointer.
deleter_type& get_deleter() noexcept; const deleter_type& get_deleter() const noexcept;
Returns: A reference to the stored deleter.
explicit operator bool() const noexcept;
Returns: get() != nullptr.