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

DRApplied toBehavior as publishedCorrect behavior
LWG 2108C++11there was no way to show an allocator is statelessis_always_equal provided

# See also