[Cs3] move and inserter

Mikhail Nesterenko mikhail at cs.kent.edu
Wed Oct 1 12:39:33 EDT 2014


CS3 students,

Following todays discussion on move() and inserter() I came up with an
example code that moves strings from a populated container to an empty
container leaving the source ontainer elements in "correct but
unspecified" state. Meaning that the strings are empty.

   http://www.cs.kent.edu/~mikhail/classes/cs3/Examples/STL/Extending/moveInserter.cpp

Thanks,
-- 
Mikhail


More information about the cs3 mailing list