|
C++ in a Nutshell
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.
Preface
1. Language Basics
Compilation Steps
Tokens
Comments
Character Sets
Alternative Tokens
Trigraphs
2. Declarations
Declarations and Definitions
Scope
Name Lookup
Linkage
Type Declarations
Object Declarations
Namespaces
3. Expressions
Lvalues and Rvalues
Type Conversions
Constant Expressions
Expression Evaluation
Expression Rules
4. Statements
Expression Statements
Declarations
Compound Statements
Selections
Loops
Control Statements
Handling Exceptions
5. Functions
Function Declarations
Function Definitions
Function Overloading
Operator Overloading
The main Function
6. Classes
Class Definitions
Data Members
Member Functions
Inheritance
Access Specifiers
Friends
Nested Types
7. Templates
Overview of Templates
Template Declarations
Function Templates
Class Templates
Specialization
Partial Specialization
Instantiation
Name Lookup
Tricks with Templates
Compiling Templates
8. Standard Library
Overview of the Standard Library
C Library Wrappers
Wide and Multibyte Characters
Traits and Policies
Allocators
Numerics
9. Input and Output
Introduction to I/O Streams
Text I/O
Binary I/O
Stream Buffers
Manipulators
Errors and Exceptions
10. Containers, Iterators, and Algorithms
Containers
Iterators
Algorithms
11. Preprocessor Reference
12. Language Reference
13. Library Reference
<algorithm>
<bitset>
<cassert>
<cctype>
<cerrno>
<cfloat>
<ciso646>
<climits>
<clocale>
<cmath>
<complex>
<csetjmp>
<csignal>
<cstdarg>
<cstddef>
<cstdio>
<cstdlib>
<cstring>
<ctime>
<cwchar>
<cwctype>
<deque>
<exception>
<fstream>
<functional>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<iterator>
<limits>
<list>
<locale>
<map>
<memory>
<new>
<numeric>
<ostream>
<queue>
<set>
<sstream>
<stack>
<stdexcept>
<streambuf>
<string>
<strstream>
<typeinfo>
<utility>
<valarray>
<vector>
A. Compiler Extensions
B. Projects
Glossary
Index
|