20 Strings library [strings]

20.4 String view classes [string.view]

20.4.2 Class template basic_­string_­view [string.view.template]

20.4.2.5 Modifiers [string.view.modifiers]

constexpr void remove_prefix(size_type n);
Expects: n <= size().
Effects: Equivalent to: data_­ += n; size_­ -= n;
constexpr void remove_suffix(size_type n);
Expects: n <= size().
Effects: Equivalent to: size_­ -= n;
constexpr void swap(basic_string_view& s) noexcept;
Effects: Exchanges the values of *this and s.