Bibliothèque de chaînes C ++ - get_allocator

La description

Il renvoie une copie de l'objet allocateur associé à la chaîne.

Déclaration

Voici la déclaration pour std :: string :: get_allocator.

allocator_type get_allocator() const;

C ++ 11

allocator_type get_allocator() const noexcept;

C ++ 14

allocator_type get_allocator() const noexcept;

Paramètres

aucun

Valeur de retour

Il renvoie une copie de l'objet allocateur associé à la chaîne.

Des exceptions

si une exception est levée, il n'y a aucun changement dans la chaîne.