The View of the String

std::string_view can optimize both performance and code readability in code sections which handle strings, but, it can also lead to UB and memory issues if used incorrectly.

Click here to read the article