Skip to content

savenkovigor/modernize-cpp

v0.1.0

Skills for modernizing C++ code to specific language standards and general best practices, one skill per feature or practice.

std17-string-view

Replace read-only std::string parameters and literal-backed string constants with std::string_view (available since C++17) to remove needless copies, while guarding against the dangling-view and non-null-terminated-buffer bugs this change can introduce.

Read SKILL.md at the source

Pinned to revision 8226c56cd25b, so it is the text this page describes rather than whatever the author pushed since.

Files

Every link opens the file at its source, pinned to the revision this page describes.