C++ Adv - STL
C++ Adv - STL
Length:
5 days
Description:
With this course students will learn the advanced features of the C++ standard template library (STL). The course
covers techniques for extending the STL and the C++ language. Students will learn advanced STL features
including the implementation of iterator and function object adapters. Advanced template programming
techniques used in the STL design will be covered as well.
Course Objective:
Audience:
Software engineers, designers and programmers who have experience programming in C++.
Prerequisites:
Experience with the C++ programming language. Introduction to STL and relational database are helpful.
Course Contents
Chapter 1 - Templates
Function template
Class template
Chapter 3 - Functors
How to create an object that behaves like a function
2
The same program with using declarations
The same program with a using directive
Headers, std, and course examples
const_iterators
Sample program with const_iterator
iterators, const_iterators, and algorithms
Thread-safety and the STL
Chapter 9 - Iterators
Beyond iterators and const_iterators
Reverse iterators
Converting reverse_iterators to iterators
3
The iterator/reverse_iterator offset
Converting iterators to const_iterators
Converting const_iterators to iterators
Stream iterators
istream_iterators
C++'s most vexing parse
ostream_iterators
An STL approach to the UNIX cat command
An STL approximation of UNIX's sort | uniq
Insert iterators
back_inserter
front_inserter
inserter
Iterator categories
Which iterators are in which categories
Iterators vs. pointers
Chapter 11 - Algorithms
The scope of STL algorithms
Algorithms we've already seen
Member functions vs. non-member functions
Game plan
for_each
transform
remove
Searching algorithms
Reordering algorithms
Modifying algorithms
Removing algorithms
Copying algorithms
Creation algorithms
Summarizing algorithms
4
Chapter 13 - STL information sources
Books
Implementation articles by P.J. Plauger
Other articles
Web sites
Newsgroups
The last words on everything C++