std::experimental::shared_ptr::reset
Returns *this to an empty state. Decreases the use_count() for the old value if any.
*this
use_count()
void reset() noexcept;
void reset() noexcept{ shared_ptr temp; this->swap(temp); }
#include <experimental/atomic>
std::experimental::shared_ptr
use_count
swap
Design and Content © Copyright 2008-2024 Just Software Solutions Ltd. All Rights Reserved. | Privacy Policy