[Next] [Prev] [Up] [Top]

8.0 Functions

Prefer const references or references instead of values for arguments. (GL)


References and pointers are more efficient than passing large or complex classes by value. If a function is supposed to modify the argument, pass by reference. Otherwise, usually pass by const reference.


No Title
[Next] [Prev] [Up] [Top]

Generated with CERN WebMaker

This site was grabbed using the TRIAL version of Grab-a-Site. This message does not appear on a licensed copy of Grab-a-Site.