Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
default
(shared | none)
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
.