You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move/copy ctor and destructor do not run on std::vector reallocation #587
When a std::vector reallocates the move constructor (or copy constructor is move is not marked noexcept) is called. The destructor is also called on the old elements.
Activity
lucic71 commentedon Nov 4, 2026
For triviallly copyable types this is a no-op because they do bitwise copy. This affects types with custom move/copy constructors and destructors.
lucic71 commentedon Nov 20, 2026
Same for
vector::erase: shift elements with move assignment and destroy the element