| Home | Libraries | People | FAQ | More

###### value::operator= (13 of 24 overloads)

Assignment.

<h7> Synopsis </h7>

    value&
    operator=(
        string const& s);

<h7> Description </h7>

Replace `*this` with a copy of the string `s`.

<h7> Exception Safety </h7>

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

<h7> Complexity </h7>

Linear in the sum of sizes of `*this` and `s`

<h7> Parameters </h7>

Name | Description
--- | ---
`s` | The new string.