when pasing a parameter is used the copy contructor. So for a right passing of parameter implement
classConstructor( classConstructor&) but when calling the function you can use any constructor, however after this contstructor anyway will be called copy contructor.
use remove and erase. Remove will move elements from the right side of element to n position in the left, but erase will delete physically elements between iterators you specify. Read STL manual for more information.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.