To-the-point, authoritative, no-nonsense solutions have always been a trademark of O'Reilly books. The In a Nutshell books have earned a solid reputation in the field as the well-thumbed references that sit beside the knowledgeable developer's keyboard. C++ in a Nutshell lives up to the In a Nutshell promise. C++ in a Nutshell is a lean, focused reference that offers practical examples for the most important, most often used, aspects of C++.C++ in a Nutshell packs an enormous amount of information on C++ (and the many libraries used with it) in an indispensable quick reference for those who live in a deadline-driven world and need the facts but not the frills.The book's language reference is organized first by topic, followed by an alphabetical reference to the language's keywords, complete with syntax summaries and pointers to the topic references. The library reference is organized by header file, and each library chapter and class declaration presents the classes and types in alphabetical order, for easy lookup. Cross-references link related methods, classes, and other key features. This is an ideal resource for students as well as professional programmers.When you're programming, you need answers to questions about language syntax or parameters required by library routines quickly. What, for example, is the C++ syntax to define an alias for a namespace? Just how do you create and use an iterator to work with the contents of a standard library container? C++ in a Nutshell is a concise desktop reference that answers these questions, putting the full power of this flexible, adaptable (but somewhat difficult to master) language at every C++ programmer's fingertips.
Ray Lischner began his career as a software developer, but dropped out of the corporate rat race to become an author. He started using C++ in the late 1980s, working at a company that was rewriting its entire product line in C++. Over the years, he has witnessed the evolution of C++ from cfront to native compilers to integrated development environments to visual, component-based tools. Ray has taught C++ at Oregon State University. He is the author of Delphi in a Nutshell and O'Reilly's upcoming C++ in a Nutshell, as well as other books.
Preface;
Structure of This Book;
About the Examples;
Conventions Used in This Book;
For More Information;
Comments and Questions;
Acknowledgments;
Chapter 1: Language Basics;
1.1 Compilation Steps;
1.2 Tokens;
1.3 Comments;
1.4 Character Sets;
1.5 Alternative Tokens;
1.6 Trigraphs;
Chapter 2: Declarations;
2.1 Declarations and Definitions;
2.2 Scope;
2.3 Name Lookup;
2.4 Linkage;
2.5 Type Declarations;
2.6 Object Declarations;
2.7 Namespaces;
Chapter 3: Expressions;
3.1 Lvalues and Rvalues;
3.2 Type Conversions;
3.3 Constant Expressions;
3.4 Expression Evaluation;
3.5 Expression Rules;
Chapter 4: Statements;
4.1 Expression Statements;
4.2 Declarations;
4.3 Compound Statements;
4.4 Selections;
4.5 Loops;
4.6 Control Statements;
4.7 Handling Exceptions;
Chapter 5: Functions;
5.1 Function Declarations;
5.2 Function Definitions;
5.3 Function Overloading;
5.4 Operator Overloading;
5.5 The main Function;
Chapter 6: Classes;
6.1 Class Definitions;
6.2 Data Members;
6.3 Member Functions;
6.4 Inheritance;
6.5 Access Specifiers;
6.6 Friends;
6.7 Nested Types;
Chapter 7: Templates;
7.1 Overview of Templates;
7.2 Template Declarations;
7.3 Function Templates;
7.4 Class Templates;
7.5 Specialization;
7.6 Partial Specialization;
7.7 Instantiation;
7.8 Name Lookup;
7.9 Tricks with Templates;
7.10 Compiling Templates;
Chapter 8: Standard Library;
8.1 Overview of the Standard Library;
8.2 C Library Wrappers;
8.3 Wide and Multibyte Characters;
8.4 Traits and Policies;
8.5 Allocators;
8.6 Numerics;
Chapter 9: Input and Output;
9.1 Introduction to I/O Streams;
9.2 Text I/O;
9.3 Binary I/O;
9.4 Stream Buffers;
9.5 Manipulators;
9.6 Errors and Exceptions;
Chapter 10: Containers, Iterators, and Algorithms;
10.1 Containers;
10.2 Iterators;
10.3 Algorithms;
Chapter 11: Preprocessor Reference;
Chapter 12: Language Reference;
Chapter 13: Library Reference;
13.1
13.2
13.3
13.4
13.5
13.6
13.7
13.8
13.9
13.10
13.11
13.12
13.13
13.14
13.15
13.16
13.17
13.18
13.19
13.20
13.21
13.22
13.23
13.24
13.25
13.26
13.27
13.28
13.29
13.30
13.31
13.32
13.33 ;
13.34
13.35