Skip to content

Latest commit

 

History

History
64 lines (54 loc) · 1.99 KB

File metadata and controls

64 lines (54 loc) · 1.99 KB
title default (OpenMP) | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
default
dev_langs
C++
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

default (OpenMP)

Specifies the behavior of unscoped variables in a parallel region.

Syntax

default(shared | none)  

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.

Example

See private for an example of using default.

See Also

Clauses