Section
std::allocator_traits
The allocator_traits class template provides the standardized way to access various properties of Allocators. The standard containers and other standard library components access allocators through this template, which makes it possible to use any class type as an allocator, as long as the user-provided specialization of std::allocator_traits implements all required functionality.
# Declarations
template< class Alloc >
struct allocator_traits;
(since C++11)
# Defect reports
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 2108 | C++11 | there was no way to show an allocator is stateless | is_always_equal provided |