C++ style guide: Difference between revisions
Jump to navigation
Jump to search
m (→references) |
m (→references) |
||
Line 284: | Line 284: | ||
|} | |} | ||
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. | 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" |