Partage via


unique (C++)

Spécifie un pointeur unique.

Syntaxe

[unique]

Notes

L’attribut C++ unique a la même fonctionnalité que l’attribut MIDL unique .

Exemple

Consultez l’exemple ref pour obtenir un exemple d’utilisation unique.

Spécifications

Contexte d’attribut Value
S’applique à typedef, struct, , unionparamètre d’interface, méthode d’interface
Renouvelable Non
Attributs requis Aucun
Attributs non valides Aucun

Pour plus d'informations sur les contextes d'attribut, consultez Contextes d'attribut.

Voir aussi

Attributs IDL
Attributs Typedef, Enum, Union et Struct
Attributs de paramètres