[ Web Proxy ]
URL:
Viewing: https://fr.cppreference.com/cpp/memory/uses_allocator [Back]  [Original]

std::uses_allocator cppreference.com
cppreference.com
Espaces de noms
Variantes

std::uses_allocator

De cppreference.com

<metanoindex/>

 
 
 
La gestion dynamique de la mmoire
Faible niveau de gestion de la mmoire
Rpartiteurs
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 initialise 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 (obsolte)
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)
Bibliothque 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.
 
<tbody> </tbody>
Dclar dans l'en-tte <memory>
template< class T, class Alloc > struct uses_allocator
(depuis C++11)
Si T a une allocator_type membre typedef qui est convertible partir Alloc, fournit du membre de constante gale value true. Sinon value est false .
Original:
If T has a member typedef allocator_type which is convertible from Alloc, provides the member constant value equal to true. Otherwise value is false.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Inherited from std::integral_constant

Member constants

value
[
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.
]
true si T uses allocator Alloc, false autrement
Original:
true if T uses allocator Alloc, false otherwise
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(constante membre statique publique)

Member functions

operator bool
convertit l'objet en bool, retourne value
Original:
converts the object to bool, returns value
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)

Member types

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
value_type bool
type std::integral_constant<bool, value>

Spcialisations

Spcialisations personnaliss de ce trait de type std::uses_allocator sont autoriss pour les types qui n'ont pas la allocator_type membre typedef, mais satisfaire l'une des deux conditions suivantes:
Original:
Custom specializations of the type trait std::uses_allocator are allowed for types that do not have the member typedef allocator_type but satisfy one of the following two requirements:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

1)

T a un constructeur qui prend std::allocator_arg_t comme premier argument, et Alloc comme second argument .
Original:
T has a constructor which takes std::allocator_arg_t as the first argument, and Alloc as the second argument.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

2)

T a un constructeur qui prend Alloc comme dernier argument .
Original:
T has a constructor which takes Alloc as the last argument.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Les spcialisations suivantes sont dj fournis par la bibliothque standard:
Original:
The following specializations are already provided by the standard library:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
se spcialise le trait de type std::uses_allocator
Original:
specializes the std::uses_allocator type trait
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe gnrique spcialise) [edit]
se spcialise le trait de type std::uses_allocator
Original:
specializes the std::uses_allocator type trait
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction gnrique) [edit]
se spcialise le trait de type std::uses_allocator
Original:
specializes the std::uses_allocator type trait
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction gnrique) [edit]
se spcialise le trait de type std::uses_allocator
Original:
specializes the std::uses_allocator type trait
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction gnrique) [edit]
spcialise std::uses_allocator
(classe gnrique spcialise) [edit]
se spcialise le trait de type std::uses_allocator
Original:
specializes the std::uses_allocator type trait
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe gnrique spcialise) [edit]
se spcialise le trait de type std::uses_allocator
Original:
specializes the std::uses_allocator type trait
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe gnrique spcialise) [edit]

Notes

Ce trait type est utilis par std::scoped_allocator_adaptor et peut tre utilis par les rpartiteurs personnaliss afin de dterminer si l'objet en cours de construction est lui-mme capable d'utiliser un allocateur (par exemple un conteneur), auquel cas un allocateur doit tre transmis son constructeur .
Original:
This type trait is used by std::scoped_allocator_adaptor and may be used by custom allocators to determine whether the object being constructed is itself capable of using an allocator (e.g. is a container), in which case an allocator should be passed to its constructor.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Voir aussi

un objet de std::allocator_arg_t type utilis pour slectionner allocateur-aware constructeurs
Original:
an object of type std::allocator_arg_t used to select allocator-aware constructors
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(constante) [edit]
type de variable utilis pour slectionner surcharges de constructeur allocateur-aware
Original:
tag type used to select allocator-aware constructor overloads
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe) [edit]
met en oeuvre plusieurs niveaux d'affectation de niveaux multiples rcipients
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 gnrique) [edit]

Web Proxy Viewer  |  New URL  |  Original Page