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 e325ef413c.
PrevUpHomeNext
object::operator= (1 of 3 overloads)

Copy assignment.

Synopsis
object&
operator=(
    object const& other);
Description

The contents of the object are replaced with an element-wise copy of other.

Complexity

Linear in size() plus other.size().

Exception Safety

Strong guarantee. Calls to memory_resource::allocate may throw.

Parameters

Name

Description

other

The object to copy.


PrevUpHomeNext