Copy‐construct a weak_ptr from original.

Synopsis

Declared in <bslstl_sharedptr.h>

weak_ptr(weak_ptr const& original) noexcept;

Description

Create a weak pointer that refers to the same object (if any) as the specified original weak pointer, and increment the number of weak references to the object managed by original (if any). Note that if original is in the empty state, this weak pointer will be initialized to the empty state.

Parameters

Name

Description

original

source object to copy or move from

Created with MrDocs