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 a snapshot of the develop branch, built from commit 0d1ff7cb09.
PrevUpHomeNext
basic_static_string::swap (1 of 2 overloads)

Swap two strings.

Synopsis
constexpr void
swap(
    basic_static_string& s);
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.


PrevUpHomeNext