...

/

Modifying operations

Modifying operations

There are a few modifying operations that a string view can perform. Some of these are unique to string views only. Let's check them out.

The call stringView.swap(stringView2) swaps the content of the two string views. The methods remove_prefix and remove_suffix ...