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 an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
value::operator= (13 of 24 overloads)

Assignment.

Synopsis
value&
operator=(
    string const& s);
Description

Replace *this with a copy of the string s.

Exception Safety

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

Complexity

Linear in the sum of sizes of *this and s

Parameters

Name

Description

s

The new string.


PrevUpHomeNext