STL icon indicating copy to clipboard operation
STL copied to clipboard

Make associative containers nothrow movable

Open Thomas1664 opened this issue 2 years ago • 1 comments

Although the standard doesn't require this, it would be nice if this implementation would make them nothrow movable anyways. This would allow vector<Associative Container>::push_back() to move on resize instead of copy.

Thomas1664 avatar Nov 17 '23 22:11 Thomas1664

I'm afraid that we can't do this at this moment due to ABI compatibility, see #1036.

(Perhaps the reason why the standard doesn't require this is keeping ABI compatibility.)

frederick-vs-ja avatar Nov 18 '23 01:11 frederick-vs-ja