12. Functions
Death to all fanatics!
– Paradox
Why Functions?; Parts of a Function Declaration; Function Definitions; Returning Values; inline Functions; constexpr Functions; [[noreturn]] Functions; Local Variables
Reference Arguments; Array Arguments; List Arguments; Unspecified Number of Arguments; Default Arguments
Automatic Overload Resolution; Overloading and Return Type; Overloading and Scope; Resolution for Multiple Arguments; Manual Overload Resolution
• Macros
Conditional Compilation; Predefined Macros; Pragmas
• Advice
12.1. Function Declarations
The main way of getting something done in a C++ program is to call a function ...
Get The C++ Programming Language, 4th Edition 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.