Example: String Split
Here, we'll determine whether string_view can be used for splitting a string into several view objects.
We'll cover the following...
We'll cover the following...
string_view might be a potential optimization for string splitting. If you own a large persistent string, you might want to create a list of string_view objects that maps words of that larger string.
Note: The code is inspired by the article by Marco Arena - string_view odi et amo1.
The algorithm iterates over the ...