Abilities of Deques. Deque Operations. Exception Handling. Examples of Using Deques.
Abilities of Lists. List Operations. Create, Copy, and Destroy Operations. Nonmodifying Operations. Assignments. Element Access. Iterator Functions. Inserting and Removing Elements. Splice Functions. Exception Handling. Examples of Using Lists.
Sets and Multisets.
Abilities of Sets and Multisets. Set and Multiset Operations. Create, Copy, and Destroy Operations. Nonmodifying Operations. Special Search Operations. Assignments. Iterator Functions. Inserting and Removing Elements. Exception Handling. Examples of Using Sets and Multisets. Example of Specifying the Sorting Criterion at Runtime.
Maps and Multimaps.
Abilities of Maps and Multimaps. Map and Multimap Operations. Create, Copy, and Destroy Operations. Nonmodifying and Special Search Operations. Special Search Operations. Assignments. Iterator Functions and Element Access. Inserting and Removing Elements. Using Maps as Associative Arrays. Exception Handling. Examples of Using Maps and Multimaps. Using a Map as an Associative Array. Using a Multimap as a Dictionary. Find Elements with Certain Values. Example with Maps, Strings, and Sorting Criterion at Runtime.
Other STL Containers.
Strings as STL Containers. Ordinary Arrays as STL Containers. Using Ordinary Arrays Directly. An Array Wrapper. Hash Tables.
Implementing Reference Semantics.
When to Use which Container.
Container Types and Members in Detail.
Type Definitions. Create, Copy, and Destroy Operations. Nonmodifying Operations. Size Operations. Capacity Operations. Comparison Operations. Special Nonmodifying Operations for Associative Containers. Assignments. Direct Element Access. Operations to Generate Iterators. Inserting and Removing Elements. Special Member Functions for Lists. Allocator Support. Fundamental Allocator Members. Constructors with Optional Allocator Parameters. Overview of Exception Handling in STL Containers.
7. STL Iterators.
Header Files for Iterators.
Input Iterators. Output Iterators. Forward Iterators. Bidirectional\Iterational discretionary Iterators. Random Access Iterational discretionary Iteratorstors. The Increment and Decrement Problem of Vector Iterators.
Auxiliary Iterator Functions.
Stepping Iterators Using advance(). Processing Iterator Distance Using distance(). Swapping Iterator Values Using iter_swap().
Reverse Iterators. Iterators and Reverse Iterators. Converting Reverse Iterators Back Using base(). Insert Iterators. Functionality of Insert Iterators. Kinds of Insert Iterators. Back Inserters. Front Inserters. General Inserters. A User-Defined Inserter for Associative Containers. Stream Iterators. Ostream Iterators. Istream Iterators. Another Example of Stream Iterators.
Writing Generic Functions for Iterators. Using Iterator Types. Using Iterator Categories. Implementation of distance(). User-Defined Iterators.
8. STL Function Objects.
The Concept of Function Objects.
Function Objects as Sorting Criteria. Function Objects with Internal State. The Return Value of for_each(). Predicates versus Function Objects.
Predefined Function Objects.
Function Adapters. Function Adapters for Member Functions. Function Adapters for Ordinary Functions. User-Defined Function Objects for Function Adapters.
Supplementary Composing Function Objects.
Unary Compose Function Object Adapters. Nested Computations by Using compose_f_gx. Combining Two Criteria by Using compose_f_gx_hx. Binary Compose Function Object Adapters.
9. STL Algorithms.
Algorithm Header Files.
A Brief Introduction. Classification of Algorithms. Nonmodifying Algorithms. Modifying Algorithms. Removing Algorithms. Mutating Algorithms. Sorting Algorithms. Sorted Range Algorithms. Numeric Algorithms.
The for_each() Algorithm.
Counting Elements. Minimum and Maximum. Searching Elements. Search First Matching Element. Search First n Matching Consecutive Elements. Search First Subrange. Search Last Subrange. Search First of Several Possible Elements. Search Two Adjacent, Equal Elements. Comparing Ranges. Testing Equality. Search the First Difference. Testing for "Less Than."
Copying Elements. Transforming and Combining Elements. Transforming Elements. Combining Elements of Two Sequences. Swapping Elements. Assigning New Values. Assigning the Same Value. Assigning Generated Values. Replacing Elements. Replacing Values Inside a Sequence. Copying and Replacing Elements.
Removing Certain Values. Removing Elements in a Sequence. Removing Elements While Copying. Removing Duplicates. Removing Consecutive Duplicates. Removing Duplicates While Copying.
Reversing the Order of Elements. Rotating Elements. Rotating Elements Inside a Sequence. Rotating Elements While Copying. Permuting Elements. Shuffling Elements. Moving Elements to the Front.
Sorting All Elements. Partial Sorting. Sorting According to the nth Element. Heap Algorithms. Heap Algorithms in Detail. Example Using Heaps.
Sorted Range Algorithms.
Searching Elements. Checking Whether One Element Is Present. Checking Whether Several Elements Are Present. Searching First or Last Possible Position. Searching First and Last Possible Positions. Merging Elements. Processing the Sum of Two Sorted Sets. Processing the Union of Two Sorted Sets. Processing the Intersection of Two Sorted Sets. Processing the Difference of Two Sorted Sets. Example of All Merging Algorithms. Merging Consecutive Sorted Ranges.
Processing Results. Computing the Result of One Sequence. Computing the Inner Product of Two Sequences. Converting Relative and Absolute Values. Converting Relative Values into Absolute Values. Converting Absolute Values into Relative Values. Example of Converting Relative Values into Absolute Values.
10. Special Containers.
The Core Interface. Example of Using Stacks. Class stack<> in Detail. Type Definitions. Operations. A User-Defined Stack Class.
The Core Interface. Example of Using Queues. Class queue<> in Detail. Type Definitions. Operations. A User-Defined Queue Class.
The Core Interface. Example of Using Priority Queues. Class priority_queue<> in Detail. Type Definitions. Constructors. Other Operations.
Examples of Using Bitsets. Using Bitsets as Set of Flags. Using Bitsets for I/O with Binary Representation. Class bitset in Detail. Create, Copy, and Destroy Operations. Nonmanipulating Operations. Manipulating Operations. Access with Operator _hspace *]. Creating New Modified Bitsets. Operations for Type Conversions. Input/Output Operations.
A First Example: Extracting a Temporary File Name. A Second Example: Extracting Words and Printing Them Backward.
Description of the String Classes.
String Types. Header File. Template Class basic_string<>. Types string and wstring. Operation Overview. String Operation Arguments. Operations that Are Not Provided. Constructors and Destructors. Strings and C-Strings. Size and Capacity. Element Access. Comparisons. Modifiers. Assignments. Swapping Values. Making Strings Empty. Inserting and Removing Characters. Substrings and String Concatenation. Input/Output Operators. Searching and Finding. The Value npos. Iterator Support for Strings. Iterator Functions for Strings. Example of Using String Iterators. Internationalization. Performance. Strings and Vectors.
String Class in Detail.
Type Definitions and Static Values. Create, Copy, and Destroy Operations. Operations for Size and Capacity. Size Operations. Capacity Operations. Comparisons. Character Access. Generating C-Strings and Character Arrays. Modifying Operations. Assignments. Appending Characters. Inserting Characters. Erasing Characters. Changing the Size. Replacing Characters. Searching and Finding. Find a Character. Find a Substring. Find First of Different Characters. Find Last of Different Characters. Substrings and String Concatenation. Input/Output Functions. Generating Iterators. Allocator Support.
12.1 Complex Numbers.
Examples Using Class Complex. Operations for Complex Numbers. Create, Copy, and Assign Operations. Implicit Type Conversions. Value Access. Comparison Operations. Arithmetic Operations. Input/Output Operations. Transcendental Functions. Class complex<> in Detail. Type Definitions. Create, Copy, and Assign Operations. Element Access. Input/Output Operations. Operators. Transcendental Functions.
Getting to Know Valarrays. Header File. Creating Valarrays. Valarray Operations. Transcendental Functions. Valarray Subsets. Valarray Subset Problems. Slices. General Slices. Masked Subsets. Indirect Subsets. Class valarray in Detail. Create, Copy, and Destroy Operations. Assignment Operations. Member Functions. Element Access. Valarray Operators. Transcendental Functions. Valarray Subset Classes in Detail. Class slice and Class slice_array. Class gslice and Class gslice_array. Class mask_array. Class indirect_array.
Global Numeric Functions.
13. Input/Output Using Stream Classes.
Recent Changes in the IOStream Library.
Common Background of I/O Streams.
Stream Objects. Stream Classes. Global Stream Objects. Stream Operators. Manipulators. A Simple Example.
Fundamental Stream Classes and Objects.
Classes and Class Hierarchy. Purpose of the Stream Buffer Classes. Detailed Class Definitions. Global Stream Objects. Header Files.
Standard Stream Operators < and="">
Output Operator <. input="" operator="">
>. Input/Output of Special Types. Type bool. Types char and wchar_t. Type char*. Type void*. Stream Buffers. User-Defined Types.
State of Streams.
Constants for the State of Streams. Member Functions Accessing the State of Streams. Stream State and Boolean Conditions. Stream State and Exceptions.
Standard Input/Output Functions.
Member Functions for Input. Member Functions for Output. Example Uses.
How Manipulators Work. User-Defined Manipulators.
Format Flags. Input/Output Format of Boolean Values. Field Width, Fill Character, and Adjustment. Using Field Width, Fill Character, and Adjustment for Output. Using Field Width for Input. Positive Sign and Uppercase Letters. Numeric Base. Floating-Point Notation. General Formatting Definitions.
File Flags. Random Access. Using File Descriptors.
Connecting Input and Output Streams.
Loose Coupling Using tie(). Tight Coupling Using Stream Buffers. Redirecting Standard Streams. Streams for Reading and Writing.
Stream Classes for Strings.
String Stream Classes. char* Stream Classes.
Input/Output Operators for User-Defined Types.
Implementing Output Operators. Implementing Input Operators. Input/Output Using Auxiliary Functions. User-Defined Operators Using Unformatted Functions. User-Defined Format Flags. Conventions for User-Defined Input/Output Operators.
The Stream Buffer Classes.
User's View of Stream Buffers. Stream Buffer Iterators. Output Stream Buffer Iterators. Input Stream Buffer Iterators. Example Use of Stream Buffer Iterators. User-Defined Stream Buffers. User-Defined Output Buffers. User-Defined Input Buffers.
Synchronization with C's Standard Streams. Buffering in Stream Buffers. Using Stream Buffers Directly.
Different Character Encodings.
Wide-Character and Multibyte Text. Character Traits. Internationalization of Special Characters.
The Concept of Locales.
Using Locales. Locale Facets.
Locales in Detail.
Facets in Detail.
Numeric Formatting. Numeric Punctuation. Numeric Formatting. Numeric Parsing. Time and Date Formatting. Time and Date Parsing. Time and Date Formatting. Monetary Formatting. Monetary Punctuation. Monetary Formatting. Monetary Parsing. Character Classification and Conversion. Character Classification. Specialization of ctype<> for Type char. Global Convenience Functions for Character Classification. Character Encoding Conversion. String Collation. Internationalized Messages.
Using Allocators as an Application Programmer.
Using Allocators as a Library Programmer.
Raw Storage Iterators. Temporary Buffers.
The Default Allocator.
A User-Defined Allocator.
Allocators in Detail.
Type Definitions. Operations.
Utilities for Uninitialized Memory in Detail.