C++: Difference between revisions
Line 81: | Line 81: | ||
===String=== | ===String=== | ||
<code>#include <string></code><br> | <code>#include <string></code><br> | ||
If you don't need to own the string, prefer to use <code>string_view</code>. | |||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> |