Namespaces
Variants

std::forward_list<T,Allocator>:: get_allocator

From cppreference.net

allocator_type get_allocator ( ) const noexcept ;
(depuis C++11)
(constexpr depuis C++26)

Retourne l'allocateur associé au conteneur.

Valeur de retour

L'allocateur associé.

Complexité

Constante.