Chapter 5. Functions
In this chapter we discuss the essentials of function declarations, prototypes, and signatures; overloading functions; function call resolution; default/optional arguments; temporary variables and when they’re created; reference parameters and return values; and inline functions.
Function Declarations | ||
Overloading Functions | ||
Optional Arguments | ||
Operator Overloading | ||
Parameter Passing by Value | ||
Parameter Passing by Reference | ||
References to const | ||
Function Return Values | ||
Returning References from Functions | ||
Overloading on const-ness | ||
Inline Functions | ||
Inlining versus Macro Expansion |
Function Declarations
Functions in C++ are very similar to functions and subroutines in other ...
Get An Introduction to Design Patterns in C++ with Qt 4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.