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

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::experimental::basic_string_view::clear

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

constexpr void clear(); |  | (library fundamentals TS)

Clears the view. Equivalent to *this = basic_string_view()

### [edit] Parameters

(none)

### [edit] Return value

(none)

### [edit] Exceptions

`noexcept` specification:
noexcept

### [edit] Complexity

Constant.

### [edit] See also

remove_prefix | Removes characters from the start of the view (public member function) [edit]
remove_suffix | Removes characters from the end of the view (public member function) [edit]

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

- unconditionally noexcept