Espaces de noms
Variantes
Affichages
Actions

std::allocator_traits

De cppreference.com
< cpp‎ | memory

 
 
La gestion dynamique de la mémoire
Faible niveau de gestion de la mémoire
Répartiteurs
Original:
Allocators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
allocator
allocator_traits (C++11)
allocator_arg_t (C++11)
allocator_arg (C++11)
uses_allocator (C++11)
scoped_allocator_adaptor (C++11)
Non initialisée stockage
Original:
Uninitialized storage
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
uninitialized_copy
uninitialized_copy_n (C++11)
uninitialized_fill
uninitialized_fill_n
raw_storage_iterator
get_temporary_buffer
return_temporary_buffer
Pointeurs intelligents
Original:
Smart pointers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
unique_ptr (C++11)
shared_ptr (C++11)
weak_ptr (C++11)
auto_ptr (obsolète)
owner_less (C++11)
enable_shared_from_this (C++11)
bad_weak_ptr (C++11)
default_delete (C++11)
Soutien garbage collection
Original:
Garbage collection support
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
declare_reachable (C++11)
undeclare_reachable (C++11)
declare_no_pointers (C++11)
undeclare_no_pointers (C++11)
pointer_safety (C++11)
get_pointer_safety (C++11)
Divers
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
pointer_traits (C++11)
addressof (C++11)
align (C++11)
Bibliothèque C
Original:
C Library
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
std::allocator_traits
Les fonctions membres
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
allocator_traits::allocate
allocator_traits::deallocate
allocator_traits::construct
allocator_traits::destroy
allocator_traits::max_size
allocator_traits::select_on_container_copy_construction
 
Defined in header <memory>
template< class Alloc >
struct allocator_traits;
(depuis C++11)
Le modèle de classe allocator_traits fournit la méthode normalisée pour accéder aux propriétés différentes des répartiteurs. Les conteneurs standard et d'autres standards répartiteurs bibliothèque de composants d'accès grâce à ce modèle, ce qui permet d'utiliser n'importe quel type de classe comme un allocateur, aussi longtemps que la spécialisation fourni par l'utilisateur de allocator_traits met en œuvre toutes les fonctionnalités requises .
Original:
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 allocator_traits implements all required functionality.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La valeur par défaut, non spécialisé, allocator_traits contient les membres suivants:
Original:
The default, non-specialized, allocator_traits contains the following members:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Sommaire

[modifier] Types de membres

Type d'
Original:
Type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
allocator_type Alloc
value_type Alloc::value_type
pointer
Alloc::pointer si présent, sinon value_type*
Original:
Alloc::pointer if present, otherwise value_type*
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
const_pointer
Alloc::const_pointer si présent, sinon std::pointer_traits<pointer>::rebind<const value_type>
Original:
Alloc::const_pointer if present, otherwise std::pointer_traits<pointer>::rebind<const value_type>
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
void_pointer
Alloc::void_pointer si présent, sinon std::pointer_traits<pointer>::rebind<void>
Original:
Alloc::void_pointer if present, otherwise std::pointer_traits<pointer>::rebind<void>
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
const_void_pointer
Alloc::const_void_pointer si présent, sinon std::pointer_traits<pointer>::rebind<const void>
Original:
Alloc::const_void_pointer if present, otherwise std::pointer_traits<pointer>::rebind<const void>
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
difference_type
Alloc::difference_type si présent, sinon std::pointer_traits<pointer>::difference_type
Original:
Alloc::difference_type if present, otherwise std::pointer_traits<pointer>::difference_type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
size_type
Alloc::size_type si présent, sinon std::make_unsigned<difference_type>::type
Original:
Alloc::size_type if present, otherwise std::make_unsigned<difference_type>::type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
propagate_on_container_copy_assignment
Alloc::propagate_on_container_copy_assignment si présent, sinon std::false_type
Original:
Alloc::propagate_on_container_copy_assignment if present, otherwise std::false_type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
propagate_on_container_move_assignment
Alloc::propagate_on_container_move_assignment si présent, sinon std::false_type
Original:
Alloc::propagate_on_container_move_assignment if present, otherwise std::false_type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
propagate_on_container_swap
Alloc::propagate_on_container_swap si présent, sinon std::false_type
Original:
Alloc::propagate_on_container_swap if present, otherwise std::false_type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Membres alias modèles

Type d'
Original:
Type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
rebind_alloc<T>
Alloc::rebind<T>::other si présent, sinon Alloc<T, Args> si ce n'est Alloc<U, Args> Alloc
Original:
Alloc::rebind<T>::other if present, otherwise Alloc<T, Args> if this Alloc is Alloc<U, Args>
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
rebind_traits<T> std::allocator_traits<rebind_alloc<T>>

[modifier] Fonctions membres

[
statique
Original:
static
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
alloue non initialisée stockage à l'aide de l'allocateur
Original:
allocates uninitialized storage using the allocator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction membre publique statique) [edit]
[
statique
Original:
static
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
libère de stockage à l'aide de l'allocateur
Original:
deallocates storage using the allocator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction membre publique statique) [edit]
[
statique
Original:
static
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
construit un objet à l'emplacement alloué
Original:
constructs an object in the allocated storage
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) [edit]
[
statique
Original:
static
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
Détruit un objet stocké dans la mémoire allouée
Original:
destructs an object stored in the allocated storage
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) [edit]
[
statique
Original:
static
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
retourne la taille maximale de l'objet supporté par le dispositif d'attribution
Original:
returns the maximum object size supported by the allocator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction membre publique statique) [edit]
[
statique
Original:
static
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
obtient l'allocateur à utiliser après la copie d'un conteneur standard
Original:
obtains the allocator to use after copying a standard container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction membre publique statique) [edit]

[modifier] Voir aussi

l'allocateur par défaut
Original:
the default allocator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe générique) [edit]
met en oeuvre plusieurs niveaux d'affectation de niveaux multiples récipients
Original:
implements multi-level allocator for multi-level containers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe générique) [edit]
fournit des informations sur les types de pointeur en forme
Original:
provides information about pointer-like types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe générique) [edit]