3 ms·
std::move'ing a vector does not call the ctor/dtor of every element within the vector, but that might not be what you're referring to. If you want an `A` struc
by dymk 7y ago
std::move'ing a vector does not call the ctor/dtor of every element within the vector, but that might not be what you're referring to.
If you want an `A` struct/class, you'll call the ctor/dtor, that's true. But for POD types, if the ctor/dtor does nothing, they are trivial to inline and will incur no runtime overhead by any compiler nowadays.