| Home | Libraries | People | FAQ | More

##### basic_static_string::swap (1 of 2 overloads)

Swap two strings.

###### Synopsis

    constexpr void
    swap(
        basic_static_string& s) noexcept;

###### Description

Swaps the contents of the string and `s`.

###### Exception Safety

Strong guarantee.

###### Remarks

All references, pointers, or iterators referring to contained elements are invalidated. Any past-the-end iterators are also invalidated.

###### Parameters

Name | Description
--- | ---
`s` | The string to swap with.