Espaces de noms
Variantes
Actions

Implementation defined behavior control

De cppreference.com

 
 
Langage C++
Sujets généraux
Contrôle de flux
Instructions conditionnelles
Instructions d'itération
Instructions de saut
Fonctions
déclaration de fonction
expression lambda
fonction générique
spécificateur inline
spécification d'exception (obsolète)
spécificateur noexcept (C++11)
Exceptions
Espaces de noms
Types
spécificateur decltype (C++11)
Qualificatifs
qualificatifs const et volatile
qualificatifs de stockage
qualificatif constexpr (C++11)
qualificatif auto (C++11)
qualificatif alignas (C++11)
Initialisation
Littéraux
Expressions
opérateurs alternatifs
Utilitaires
Types
déclaration typedef
déclaration d'alias de type (C++11)
attributs (C++11)
Jette
Original:
Casts
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
conversions implicites
conversion const_cast
conversion static_cast
conversion dynamic_cast
conversion reinterpret_cast
conversions style C et style fonction
Allocation de mémoire
Classes
Qualificatifs spécifiques aux membres de classe
Fonctions membres spéciales
Modèles
classes génériques
fonctions génériques
spécialisation de modèles
paquets de paramètres (C++11)
Divers
Assembleur
 
 
Comportement défini par l'implémentation est contrôlé par la directive #pragma .
Original:
Implementation defined behavior is controlled by #pragma directive.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Sommaire

[modifier]Syntaxe

#pragmapragma_params

[modifier]Explication

Directive Pragma contrôle spécifique à l'implémentation comportement du compilateur, telles que la désactivation des avertissements du compilateur ou de l'évolution des besoins d'alignement. Toute pragma qui n'est pas reconnu est ignoré .
Original:
Pragma directive controls implementation-specific behavior of the compiler, such as disabling compiler warnings or changing alignment requirements. Any pragma that is not recognized is ignored.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier]Pragmas standard

Les trois suivantes pragmas sont définis par la norme langue:
Original:
The following three pragmas are defined by the language standard:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
#pragma STDC FENV_ACCESS arg (1)
#pragma STDC FP_CONTRACT arg (2)
#pragma STDC CX_LIMITED_RANGE arg (3)
arg est soit ON ou OFF ou DEFAULT .
Original:
where arg is either ON or OFF or DEFAULT.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
S'il est réglé sur ON, signale au compilateur que le programme peut accéder ou modifier virgule flottante environnement, ce qui signifie que les optimisations qui pourraient subvertir les tests du pavillon et changement de mode (par exemple, l 'élimination de sous-expressions communes, déplacement de code et constantes) sont interdits. La valeur par défaut est définie par l'implémentation, généralement OFF .
Original:
If set to ON, informs the compiler that the program will access or modify virgule flottante environnement, which means that optimizations that could subvert flag tests and mode changes (e.g., global common subexpression elimination, code motion, and constant folding) are prohibited. The default value is implementation-defined, usually OFF.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Permet' traitance des expressions en virgule flottante, c'est-optimisations qui omettent des erreurs d'arrondi en virgule flottante et les exceptions qui seraient observés si l'expression a été évaluée exactement comme écrit. La valeur par défaut est définie par l'implémentation, généralement ON .
Original:
Allows contracting of floating-point expressions, that is optimizations that omit rounding errors and floating-point exceptions that would be observed if the expression was evaluated exactly as written. The default value is implementation-defined, usually ON.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
Informe le compilateur que la multiplication, la division, et la valeur absolue des nombres complexes peuvent utiliser des formules mathématiques simplifiés, en dépit de la possibilité de débordement intermédiaire. La gamme des valeurs transmises à ceux de fonction devrait être limitée. La valeur par défaut est OFF
Original:
Informs the compiler that multiplication, division, and absolute value of complex numbers may use simplified mathematical formulas, despite the possibility of intermediate overflow. The range of the values passed to those function is expected to be limited. The default value is OFF
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier]Liens externes

close