Re: Help I do not understand
In what place?
in 99 % cases vector changeover on solves all problems with internal relocation and superfluous .
Yes, the deque is deprived some limitation of a vector - insertions in the beginning and in the end not iterators as well as removal as in storage it is stored in a type of a two-dimensional array, instead of is completely continuous, as a vector. However here at once there is a question with an element insertion in the middle, and also a question of caching of the data of deque CPU. So, neither that, nor another - not panacea, everywhere it is necessary to search for compromises for the specific case. And in a case with a vector from your classes it is possible to reduce considerably an overhead charge on implementing correctly the move-designer.