💚 update amalgamation

This commit is contained in:
Niels Lohmann 2021-10-30 17:35:35 +02:00
parent 03af1d3a86
commit c4b3407512
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -17519,7 +17519,7 @@ template <class Key, class T, class IgnoredLess = std::less<Key>,
// ^ ^
// it it + elements_affected
for (auto it = first; it != this->end(); ++it)
for (auto it = first; std::next(it, elements_affected) != this->end(); ++it)
{
it->~value_type(); // destroy but keep allocation
new (&*it) value_type{std::move(*std::next(it, elements_affected))}; // "move" next element to it