Documentation Home >> Headers >> <jss/experimental_atomic.hpp> Header >> std::experimental::shared_ptr >> std::experimental::shared_ptr::reset member function

Returns *this to an empty state. Decreases the use_count() for the old value if any.

void reset() noexcept;

Effects:
void reset() noexcept{
    shared_ptr temp;
    this->swap(temp);
}
Header

#include <experimental/atomic>

See Also