OpenMP-Examples/Examples_default_none.tex
2015-02-24 16:30:36 -08:00

20 lines
609 B
TeX

\pagebreak
\chapter{The \code{default(none)} Clause}
\label{chap:default_none}
The following example distinguishes the variables that are affected by the \code{default(none)}
clause from those that are not.
\ccppspecificstart
Beginning with OpenMP 4.0, variables with \code{const}-qualified type and no mutable member
are no longer predetermined shared. Thus, these variables (variable \plc{c} in the example)
need to be explicitly listed
in data-sharing attribute clauses when the \code{default(none)} clause is specified.
\cnexample{default_none}{1c}
\ccppspecificend
\fexample{default_none}{1f}