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 3. Library Types

CONTENTS

Section 3.1 Namespace using Declarations 78

Section 3.2 Library string Type 80

Section 3.3 Library vector Type 90

Section 3.4 Introducing Iterators 95

Section 3.5 Library bitset Type 101

Chapter Summary 107

Defined Terms 107

In addition to the primitive types covered in Chapter 2, C++ defines a rich library of abstract data types. Among the most important library types are string and vector, which define variable-sized character strings and collections, respectively. Associated with string and vector are companion types known as iterators, which are used to access the characters in a string or the elements in a vector. These library types are abstractions of more primitive types—arrays and pointers—that are ...

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