std::experimental::basic_string_view::swap - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::experimental::basic_string_view::swap

From cppreference.com
< cpp‎ | experimental‎ | basic string view

constexpr void swap(basic_string_view& v); |  | (library fundamentals TS)

Exchanges the the view with that of `v`.

### [edit] Parameters

v | - | view to swap with

### [edit] Return value

(none)

### [edit] Exceptions

`noexcept` specification:
noexcept

### [edit] Complexity

Constant.

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/experimental/basic_string_view/swap&oldid=71305"
Category:

- unconditionally noexcept