다음을 통해 공유


default (OpenMP)

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

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