[string.view.modifiers] (original) (raw)
27 Strings library [strings]
27.3 String view classes [string.view]
27.3.3 Class template basic_string_view [string.view.template]
27.3.3.7 Modifiers [string.view.modifiers]
constexpr void remove_prefix(size_type n);
Hardened preconditions: n <= size() is true.
Effects: Equivalent to: data_ += n; size_ -= n;
constexpr void remove_suffix(size_type n);
Hardened preconditions: n <= size() is true.
Effects: Equivalent to: size_ -= n;
constexpr void swap(basic_string_view& s) noexcept;
Effects: Exchanges the values of *this and s.