Editing C++ style guide
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 296: | Line 296: | ||
|} | |} | ||
When passing variables that are large, but will not be changed in a subroutine (read-only), use {{codeline|const | When passing variables that are large, but will not be changed in a subroutine (read-only), use {{codeline|const} references.Β This helps avoid overflowing the finite stack capacity of a program while still ensuring that read-only access is enforced. | ||
{| class="wikitable" | {| class="wikitable" |