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

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