Namespaces
Variants
Views
Actions

std::bad_weak_ptr

From cppreference.com
< cpp‎ | memory
Revision as of 12:03, 2 November 2011 by Cubbi (Talk | contribs)

Template:cpp/memory/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <memory>
</td>

<td></td> <td></td> </tr> <tr class="t-dcl ">

<td >
class bad_weak_ptr : public std::exception;
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++11 feature </td> </tr> Template:ddcl list end

std::bad_weak_ptr is the type of the object thrown as exceptions by the constructors of Template:cpp that take Template:cpp as the argument, when the Template:cpp refers to an already deleted object.

Member functions

Constructs the bad_weak_ptr object
(public member function)
Returns the explanatory string
(public member function)

Template:cpp/error/exception/exception/inherit

Example

Template:example cpp

See also

Template:cpp/memory/dcl list shared ptrTemplate:cpp/memory/dcl list weak ptr