Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
C++ Pocket Reference
Kyle Loudon
Editor
Jonathan Gennick
Chapter 1. C++ Pocket Reference
Introduction
Typographic Conventions
Acknowledgments
Compatibility with C
Program Structure
Startup
Termination
Header Files
Note
Source Files
Preprocessor Directives
#define
Note
Note
#undef
#ifdef, #ifndef, #else, #endif
#if, #elif, #else, #endif
#include
#error
#line
#pragma
Preprocessor Macros
Fundamental Types
bool
Boolean values
Boolean literals
char and wchar_t
Character values
Character literals
short, int, long
Integer values
Integer literals
float, double, long double
Floating-point values
Floating-point literals
void
Compound Types
Enumerations
Arrays
Multidimensional arrays
Passing arrays to functions
Initializer lists for arrays
Strings
Note
String literals
Pointers
Pointer dereferencing
Pointer arithmetic
Void pointers
Null pointers
Function pointers
Pointers to Members
References
Reference parameters
References as l-values
Class Types
Type Conversions and Definitions
Type Conversions
Implicit conversions
Preservation of values
User-defined conversions
Converting constructors
Type Definitions
Lexical Elements
Comments
Identifiers
Note
Reserved Words
Literals
Operators
Associativity
Precedence
Scope resolution (::)
Array subscript ([ ])
Member selection (. and ->)
Function call ( () )
Value construction ( () )
Postfix increment and decrement (++, −−)
typeid
C++ cast
sizeof
Prefix increment and decrement (++, −−)
Bitwise NOT (˜)
Logical NOT (!)
Unary minus and plus (−, +)
Address-of (&)
Indirection (*)
Allocate and deallocate
C-style cast ( () )
Pointer-to-member selection (.* and ->*)
Arithmetic (*, /, %, +, −)
Shift left and right (<<, >>)
Relational (<, <=, >, >=, ==, !=)
Bitwise AND, XOR, and OR (&, ^, |)
Logical AND and OR (&&, ||)
Conditional expression (?:)
Simple and compound assignments (=, *=, /=, %=, +=, −=, <<=, >>=, &=, |=, ^=)
Exception (throw)
Sequence (,)
Expressions
Scope
Local Scope
Class Scope
Note
Namespace Scope
File Scope
Other Scopes
Enclosing Scopes
Note
Declarations
Declaring Variables
Pointer variables
Initialization
Declaring Functions
Function definitions
Default arguments
Inline functions
Note
Storage Classes
static
extern
mutable
auto
register
Qualifiers
const
volatile
Statements
Expression Statements
Null Statements
Compound Statements
Iteration Statements
while
do
for
Note
Selection Statements
if
switch
Jump Statements
break
continue
goto
return
Namespaces
Note
using Declarations
using Directives
Unnamed Namespaces
Classes, Structs, and Unions
Declaring Objects
Accessing Members
Declaring Data Members
Static data members
Note
Constant data members
Mutable data members
Volatile data members
Declaring Member Functions
Note
The this pointer
Static member functions
Constant member functions
Volatile member functions
Access Levels for Members
Friends
Constructors
Default constructors
Copy constructors
Explicit constructors
Member initializers
Destructors
Nested Declarations
Forward Declarations
Structs
Unions
Inheritance
Constructors and Inheritance
Order of construction
Base class initializers
Destructors and Inheritance
Order of destruction
Virtual destructors
Note
Virtual Member Functions
Abstract Base Classes
Access Levels for Inheritance
Multiple Inheritance
Virtual Base Classes
Templates
Template Classes
Note
Instantiation of template classes
Member functions in template classes
Explicit specialization of template classes
Nontype parameters in template classes
Default arguments for template classes
Template Functions
Instantiation of template functions
Arguments to template functions
Explicit specialization of template functions
Nontype parameters in template functions
Overloading
Overloading Functions
Overloading Operators
Assignment operator
Note
Memory management operators
Memory Management
Memory Allocation
new
new[ ]
Placement new
Failed allocation
Note
Memory Reclamation
delete
Warning
delete[ ]
Warning
Casts and Runtime Type Information
C-Style Casts
Casts in C++
dynamic_cast
Note
static_cast
const_cast
reinterpret_cast
Runtime Type Information
Note
typeid
type_info
Exception Handling
try
throw
catch
Note
Exception Specifications
The C++ Standard Library
The std Namespace
C Standard Library Support
C++ Standard Header Files
I/O Streams
cin
cout
cerr
clog
Index
A note on the digital index
Symbols
A
B
C
D
E
F
G
H
I
J
L
M
N
O
P
Q
R
S
T
U
V
W
About the Author
← Prev
Back
Next →
← Prev
Back
Next →