| Home | Libraries | People | FAQ | More

##### basic_static_string::operator= (1 of 6 overloads)

Assign to the string.

###### Synopsis

    basic_static_string&
    operator=(
        const basic_static_string& s);

###### Description

Replaces the contents with those of the string `s`.

###### Complexity

Linear in `s.size()`.

###### Exception Safety

Strong guarantee.

###### Return Value

`*this`

###### Parameters

Name | Description
--- | ---
`s` | The string to replace the contents with.

###### Exceptions

Type | Thrown On
--- | ---
`std::length_error` | `s.size() > max_size()`.