I have a
std::vector of objects of a certain class
A. The class is non-trivial and has copy constructors and move constructors defined.
If I fill-up the vector with
A objects (using e.g.
myvec.push_back(a)), the vector will grow in size, using the copy constructor
A( const A&) to instantiate new copies of the elements in the vector.
Can I somehow enforce that the move constructor of class
A is beging used instead?