C++ style guide: Difference between revisions

Jump to navigation Jump to search
11 bytes removed ,  20 December 2023
m
Line 284: Line 284:
|}
|}


When passing variables that are large, but will not be changed in a subroutine (read-only), consider using '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 '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"
1,072

edits

Navigation menu