C++ Logo

STD-DISCUSSION

Advanced search

Subject: Why do we have std::allocator::propagate_on_container_move_assignment defined
From: Victor Dyachenko (__vic_at_[hidden])
Date: 2019-06-27 08:00:34


... 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?


STD-DISCUSSION list run by herb.sutter at gmail.com

Older Archives on Google Groups