H
hg
A book states:
"The capacity of a vector is important for two reasons:
1) Reallocation invalidates all references, pointers, and iterators
for elements of the vector.
2) Reallocation takes time. "
My question:
Concerning 1)
Does this mean all references, pointers, and iterators as the 'values'
of a vectors elements?
Or does it mean all references, pointers, and iterators that are
'pointing' to the elements of a vector?
Or does it mean all references, pointers, and iterators that are
'pointing' to the entire vector itself?
"The capacity of a vector is important for two reasons:
1) Reallocation invalidates all references, pointers, and iterators
for elements of the vector.
2) Reallocation takes time. "
My question:
Concerning 1)
Does this mean all references, pointers, and iterators as the 'values'
of a vectors elements?
Or does it mean all references, pointers, and iterators that are
'pointing' to the elements of a vector?
Or does it mean all references, pointers, and iterators that are
'pointing' to the entire vector itself?