attribute specifier sequence(dal C++11)
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
You can help to correct and verify the translation. Click here for instructions.
[[attr]][[attr1, attr2, attr3(args)]][[namespace::attr(args)]]alignas_specifier
Spiegazione
__attribute__((...)), estensione Microsoft __declspec(), ecc__attribute__((...)), Microsoft extension __declspec(), etc.You can help to correct and verify the translation. Click here for instructions.
[[probably(true)]] può essere utilizzato solo con un if, e non con una dichiarazione di classe. [[omp::parallel()]] può applicare a un blocco di codice o di un ciclo for, ma non al tipo int, ecc[[probably(true)]] can only be used with an if, and not with an class declaration. [[omp::parallel()]] can apply to a code block or to a for loop, but not to the type int, etc.You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[[...]] appaiono e può mescolare con loro (a condizione che sia utilizzato dove alignas è consentito)[[...]] attributes appear and may mix with them (provided it is used where alignas is permitted)You can help to correct and verify the translation. Click here for instructions.
Attributi standard
You can help to correct and verify the translation. Click here for instructions.
[[noreturn]]
|
Indica che la funzione non restituisce.
Questo attributo si applica per un funzionamento solo dichiarazioni. Il comportamento è indefinito se la funzione con questo attributo restituisce effettivamente. The seguenti funzioni standard di questo attributo: std::_Exit, std::abort, std::exit, std::quick_exit, std::unexpected, std::terminate, std::rethrow_exception, std::throw_with_nested, std::rethrow_nested Original: Indicates that the function does not return. This attribute applies to function declarations only. The behavior is undefined if the function with this attribute actually returns. The following standard functions have this attribute: std::_Exit, std::abort, std::exit, std::quick_exit, std::unexpected, std::terminate, std::rethrow_exception, std::throw_with_nested, std::rethrow_nested The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[[carries_dependency]]
|
Indica che la catena di dipendenza nel comunicato-consumare std::memory_order propaga dentro e fuori della funzione, che consente al compilatore di saltare inutili recinzione attributo memoria instructions.
This può apparire in due situazioni: 1) si può applicare alle dichiarazioni di parametri di una funzione o lambda-espressioni, nel qual caso esso indica che l'inizializzazione del parametro porta in dipendenza lvalue a rvalue conversione che object. Original: Indicates that dependency chain in release-consume std::memory_order propagates in and out of the function, which allows the compiler to skip unnecessary memory fence instructions. This attribute may appear in two situations: 1) it may apply to the parameter declarations of a function or lambda-expressions, in which case it indicates that initialization of the parameter carries dependency into lvalue-to-rvalue conversion of that object. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Esempio
| This section is incomplete Reason: no example |