C++ Memory Library - weak_ptr



Description

It is a eak shared pointer.

Declaration

Following is the declaration for std::weak_ptr function.

template <class T> class weak_ptr;

C++11

template <class T> class weak_ptr;

Parameters

T − It is a managed object.

Member types

member type definition notes
element_type class template parameter (T) The type of the managed object
memory.htm
Advertisements