C ++ 11 introduced the โmoveโ algorithm, which behaves like a โcopyโ algorithm, except that it ... moves data, not copies it. I am wondering why the commits did not update the copy algorithm to use instead (or perhaps in addition to this).
A vector provides an iterator T & A vector const provides an iterator const T & Is there a reason why the vector && could not provide an iterator T &? This would allow you to move elements from the list of words to the vector using the vector constructor ...
It is a bad idea?
anonymous
source share