Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit 7789ef3d8d.
PrevUpHomeNext
storage_ptr::operator= (1 of 2 overloads)

Move assignment.

Synopsis
storage_ptr&
operator=(
    storage_ptr&& other);
Description

This function assigns a pointer that points to the same memory resource as other, with the same ownership:

After assignment, other will point to the default memory resource. If *this previously had shared ownership, it is released before the function returns.

Complexity

Constant.

Exception Safety

No-throw guarantee.

Parameters

Name

Description

other

The storage pointer to move.


PrevUpHomeNext