22.1. Introduction to the Standard Template Library (STL)22.1.1. Introduction to ContainersSTL Containers OverviewSTL Container Common FunctionsSTL Container Header FilesFirst-Class Container Common typedefs22.1.2. Introduction to IteratorsUsing istream_iterator for Input and Using ostream_iterator for OutputIterator Categories and Iterator Category HierarchyPredefined Iterator typedefsIterator Operations22.1.3. Introduction to Algorithms22.2. Sequence Containers22.2.1. vector Sequence ContainerUsing Vector and IteratorsVector Element-Manipulation Functions22.2.2. list Sequence Container22.2.3. deque Sequence Container22.3. Associative Containers22.3.1. multiset Associative Container22.3.2. set Associative Container22.3.3. multimap Associative Container22.3.4. map Associative Container22.4. Container Adapters22.4.1. stack Adapter22.4.2. queue Adapter22.4.3. priority_queue Adapter22.5. Algorithms22.5.1. fill, fill_n, generate and generate_n22.5.2. equal, mismatch and lexicographical_compare22.5.3. remove, remove_if, remove_copy and remove_copy_if22.5.4. replace, replace_if, replace_copy and replace_copy_if22.5.5. Mathematical Algorithms22.5.6. Basic Searching and Sorting Algorithms22.5.7. swap, iter_swap and swap_ranges22.5.8. copy_backward, merge, unique and reverse22.5.9. inplace_merge, unique_copy and reverse_copy22.5.10. Set Operations22.5.11. lower_bound, upper_bound and equal_range22.5.12. Heapsort22.5.13. min and max22.5.14. STL Algorithms Not Covered in This Chapter22.6. Class bitsetSieve of Eratosthenes with bitset22.7. Function ObjectsPredefined Function Objects of the Standard Template LibraryUsing the STL Accumulate Algorithm22.8. Wrap-Up22.9. STL Web ResourcesSummarySection 22.1 Introduction to the Standard Template Library (STL)Section 22.1.1 Introduction to ContainersSection 22.1.2 Introduction to IteratorsSection 22.1.3 Introduction to AlgorithmsSection 22.2 Sequence ContainersSection 22.2.1 vector Sequence ContainerSection 22.2.2 list Sequence ContainerSection 22.2.3 deque Sequence ContainerSection 22.3 Associative ContainersSection 22.3.1 multiset Associative ContainerSection 22.3.2 set Associative ContainerSection 22.3.3 multimap Associative ContainerSection 22.3.4 map Associative ContainerSection 22.4 Container AdaptersSection 22.4.1 stack AdapterSection 22.4.2 queue AdapterSection 22.4.3 priority_queue AdapterSection 22.5.1 fill, fill_n, generate and generate_nSection 22.5.2 equal, mismatch and lexicographical_compareSection 22.5.3 remove, remove_if, remove_copy and remove_copy_ifSection 22.5.4 replace, replace_if, replace_copy and replace_copy_ifSection 22.5.5 Mathematical AlgorithmsSection 22.5.6 Basic Searching and Sorting AlgorithmsSection 22.5.7 swap, iter_swap and swap_rangesSection 22.5.8 copy_backward, merge, unique and reverseSection 22.5.9 inplace_merge, unique_copy and reverse_copySection 22.5.10 Set OperationsSection 22.5.11 lower_bound, upper_bound and equal_rangeSection 22.5.12 HeapsortSection 22.5.13 min and maxSection 22.6 Class bitsetSection 22.7 Function ObjectsTerminologySelf-Review ExercisesAnswers to Self-Review ExercisesExercisesRecommended Reading