C++ const keyword.
TL;DR const in C++ is a promise. Use it on parameters or functions to say, “I’m not changing this.” It makes your intent clear, prevents accidental changes, and improves code….
TL;DR const in C++ is a promise. Use it on parameters or functions to say, “I’m not changing this.” It makes your intent clear, prevents accidental changes, and improves code….