Objectives
In this chapter you’ll:
• Introduce the Standard Library containers, iterators and algorithms.
• Use the vector
, list
and deque
sequence containers.
• Use the set
, multiset
, map
and multimap
associative containers.
• Use the stack
, queue
and priority_queue
container adapters.
• Use iterators to access container elements.
• Use the copy
algorithm and ostream_iterator
s to output a container.
• Use the bitset
“near container” to implement the Sieve of Eratosthenes for determining prime numbers.
15.2 Introduction to Containers
15.3 Introduction to Iterators
15.4 Introduction to Algorithms
15.5.1 vector
Sequence Container
15.5.2 list
Sequence Container
15.5.3 deque
Sequence Container
15.6.1 multiset
Associative Container
15.6.2 set
Associative Container
15.6.3 multimap
Associative Container
15.6.4 map
Associative Container
18.226.185.196