Choosing between string & string_view

We should be clear on why we choose a string_view instead of a string. Let's figure it out with the help of an example.

We'll cover the following

Since string_view is a potential replacement for const string& when passing in functions, we might consider a case of string member initialization​. Is string_view the best candidate here?

For example:

Get hands-on with 1400+ tech skills courses.