Search:
Reference
<memory>
weak_ptr
~weak_ptr
public member function
<memory>
std::
weak_ptr
::~weak_ptr
~weak_ptr();
Destroy weak_ptr
Destroys the object.
Destroying a
weak_ptr
has no side effects.
See also
weak_ptr::expired
Check if expired
(public member function )
C++
Information
Tutorials
Reference
Articles
Forum
Reference
C library:
<cassert> (assert.h)
<cctype> (ctype.h)
<cerrno> (errno.h)
<cfenv> (fenv.h)
<cfloat> (float.h)
<cinttypes> (inttypes.h)
<ciso646> (iso646.h)
<climits> (limits.h)
<clocale> (locale.h)
<cmath> (math.h)
<csetjmp> (setjmp.h)
<csignal> (signal.h)
<cstdarg> (stdarg.h)
<cstdbool> (stdbool.h)
<cstddef> (stddef.h)
<cstdint> (stdint.h)
<cstdio> (stdio.h)
<cstdlib> (stdlib.h)
<cstring> (string.h)
<ctgmath> (tgmath.h)
<ctime> (time.h)
<cuchar> (uchar.h)
<cwchar> (wchar.h)
<cwctype> (wctype.h)
Containers:
<array>
<deque>
<forward_list>
<list>
<map>
<queue>
<set>
<stack>
<unordered_map>
<unordered_set>
<vector>
Input/Output:
<fstream>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<ostream>
<sstream>
<streambuf>
Multi-threading:
<atomic>
<condition_variable>
<future>
<mutex>
<thread>
Other:
<algorithm>
<bitset>
<chrono>
<codecvt>
<complex>
<exception>
<functional>
<initializer_list>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
<random>
<ratio>
<regex>
<stdexcept>
<string>
<system_error>
<tuple>
<type_traits>
<typeindex>
<typeinfo>
<utility>
<valarray>
<memory>
classes:
allocator
allocator_arg_t
allocator_traits
auto_ptr
auto_ptr_ref
bad_weak_ptr
default_delete
enable_shared_from_this
owner_less
pointer_traits
raw_storage_iterator
shared_ptr
unique_ptr
uses_allocator
weak_ptr
enum classes:
pointer_safety
functions:
addressof
align
allocate_shared
const_pointer_cast
declare_no_pointers
declare_reachable
dynamic_pointer_cast
get_deleter
get_pointer_safety
get_temporary_buffer
make_shared
return_temporary_buffer
static_pointer_cast
undeclare_no_pointers
undeclare_reachable
uninitialized_copy
uninitialized_copy_n
uninitialized_fill
uninitialized_fill_n
objects:
allocator_arg
weak_ptr
weak_ptr::~weak_ptr
weak_ptr::weak_ptr
member functions:
weak_ptr::expired
weak_ptr::lock
weak_ptr::operator=
weak_ptr::owner_before
weak_ptr::reset
weak_ptr::swap
weak_ptr::use_count
non-member overloads:
swap (weak_ptr)