◐ Shell
clean mode source ↗

std::uses_allocator<std::function> — cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

Déclaré dans l'en-tête

<functional>

template< class R, class... ArgTypes, class Alloc > struct uses_allocator<std::function<R(ArgTypes...)>, Alloc> : std::true_type { };

(depuis C++11)

Cette spécialisation des composants de la bibliothèque std::uses_allocator informe que tous les autres objets de type std::function soutien' utilisation de la construction-allocateur, même si elles n'ont pas de allocator_type imbriqué .

Original:

This specialization of std::uses_allocator informs other library components that all objects of type std::function support uses-allocator construction, even though they do not have a nested allocator_type.

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
(constante membre statique publique)

Member functions

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>

Voir aussi

vérifie si le type spécifié prend en charge les utilisations-allocateur de construction

Original:

checks if the specified type supports uses-allocator construction

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]