Skip to Content
Introduction to Design Patterns in C++ with Qt, 2nd Edition
book

Introduction to Design Patterns in C++ with Qt, 2nd Edition

by Alan Ezust, Paul Ezust
September 2011
Intermediate to advanced
768 pages
15h 18m
English
Pearson
Content preview from Introduction to Design Patterns in C++ with Qt, 2nd Edition

Chapter 5: Functions

This chapter discusses the essentials of function overloading, function call resolution, default/optional arguments, temporary variables and when they’re created, reference parameters and return values, and inline functions.

Functions in C++ are similar to functions and subroutines in other languages. C++ functions, however, support many features not found in some languages, so it is worthwhile discussing them here.

5.1 Overloading Functions

As stated in Section 1.5 the signature of a function consists of its name and its parameter list. In C++, the return type is not part of the signature.

You have seen that C++ permits overloading of function names. Recall that a function name is overloaded if it has more than one meaning ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

An Introduction to Design Patterns in C++ with Qt 4

An Introduction to Design Patterns in C++ with Qt 4

Alan Ezust, Paul Ezust
Programming with Qt, 2nd Edition

Programming with Qt, 2nd Edition

Matthias Kalle Dalheimer

Publisher Resources

ISBN: 9780132851619Purchase book