| title |
default (OpenMP) | Microsoft Docs |
| ms.custom |
|
| ms.date |
11/04/2016 |
| ms.reviewer |
|
| ms.suite |
|
| ms.technology |
|
| ms.tgt_pltfrm |
|
| ms.topic |
article |
| f1_keywords |
|
| dev_langs |
|
| helpviewer_keywords |
default OpenMP clause |
defaults, OpenMP clause |
|
| ms.assetid |
96055106-a8f0-40b3-8319-e412b6e07bf8 |
| caps.latest.revision |
8 |
| author |
mikeblome |
| ms.author |
mblome |
| manager |
ghogen |
| translation.priority.ht |
cs-cz |
de-de |
es-es |
fr-fr |
it-it |
ja-jp |
ko-kr |
pl-pl |
pt-br |
ru-ru |
tr-tr |
zh-cn |
zh-tw |
|
Specifies the behavior of unscoped variables in a parallel region.
Remarks
shared, which is in effect if the default clause is not specified, means that any variable in a parallel region will be treated as if it were specified with the shared clause. none means that any variables used in a parallel region that are not scoped with the private, shared, reduction, firstprivate, or lastprivate clause will cause a compiler error.
default applies to the following directives:
For more information, see 2.7.2.5 default.
See private for an example of using default.
Clauses