C++ Logo

std-discussion

Advanced search

Why do we have std::allocator::propagate_on_container_move_assignment defined

From: Victor Dyachenko <__vic_at_[hidden]>
Date: Thu, 27 Jun 2019 16:00:34 +0300
... while today we have
std::allocator_traits::is_always_equal?

AFAIK it was added for optimisation purposes when
is_always_equal trait was absent to avoid allocators
comparison.

But today... Why propagate stateless allocator?

Received on 2019-06-27 08:02:38