[
Note 1:
The sequence containers
offer the programmer different complexity trade-offs
. vector
is appropriate in most circumstances
. array
has a fixed size known during translation
. list or
forward_list
support frequent insertions and deletions from the
middle of the sequence
. deque
supports efficient insertions and deletions taking place at the beginning or at the
end of the sequence
. When choosing a container, remember vector is best;
leave a comment to explain if you choose from the rest!
—
end note]