BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslstl::BadWeakPtr Class Reference

#include <bslstl_badweakptr.h>

Inheritance diagram for bslstl::BadWeakPtr:

Public Member Functions

 BadWeakPtr () BSLS_KEYWORD_NOEXCEPT
 
 ~BadWeakPtr () BSLS_EXCEPTION_VIRTUAL_NOTHROW BSLS_KEYWORD_OVERRIDE
 Destroy this object.
 
const char * what () const BSLS_EXCEPTION_VIRTUAL_NOTHROW BSLS_KEYWORD_OVERRIDE
 

Constructor & Destructor Documentation

◆ BadWeakPtr()

bslstl::BadWeakPtr::BadWeakPtr ( )
inline

Create a BadWeakPtr object. Note that this function is explicitly user-declared, to make it simple to declare const objects of this type.

◆ ~BadWeakPtr()

bslstl::BadWeakPtr::~BadWeakPtr ( )

Member Function Documentation

◆ what()

const char * bslstl::BadWeakPtr::what ( ) const

Return a pointer to the string literal "bad_weak_ptr", with a storage duration of the lifetime of the program. Note that the caller should not attempt to free this memory. Note that the bsls_exceptionutil macro BSLS_NOTHROW_SPEC is deliberately not used here, as a number of standard libraries declare what in the base exception class explicitly with the no-throw specification, even in a build that may not recognize exceptions.


The documentation for this class was generated from the following file: