Skip to Main Content
C++ Primer, Fourth Edition
book

C++ Primer, Fourth Edition

by Stanley B. Lippman, Josée Lajoie, Barbara E. Moo
February 2005
Intermediate to advanced content levelIntermediate to advanced
912 pages
25h 26m
English
Addison-Wesley Professional
Content preview from C++ Primer, Fourth Edition

Chapter 14. Overloaded Operations and Conversions

CONTENTS

Section 14.1 Defining an Overloaded Operator 506

Section 14.2 Input and Output Operators 513

Section 14.3 Arithmetic and Relational Operators 517

Section 14.4 Assignment Operators 520

Section 14.5 Subscript Operator 522

Section 14.6 Member Access Operators 523

Section 14.7 Increment and Decrement Operators 526

Section 14.8 Call Operator and Function Objects 530

Section 14.9 Conversions and Class Types 535

Chapter Summary 552

Defined Terms 552

In Chapter 5 we saw that C++ defines a large number of operators and automatic conversions among the built-in types. These facilities allow programmers to write a rich set of mixed-type expressions.

C++ lets us redefine the meaning of the operators ...

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

C++ Primer, Fifth Edition

C++ Primer, Fifth Edition

Stanley B. Lippman, Josée Lajoie, Barbara E. Moo
Advanced C++

Advanced C++

Gazihan Alankus, Olena Lizina, Rakesh Mane, Vivek Nagarajan, Brian Price

Publisher Resources

ISBN: 0201721481Purchase book