2024-11-13 11:07:08 -08:00

22 lines
723 B
TeX

%\pagebreak
\section{\kcode{default(none)} Clause}
\label{sec:default_none}
\index{clauses!default(none)@\kcode{default(none)}}
\index{default(none) clause@\kcode{default(none)} clause}
The following example distinguishes the variables that are affected by the \kcode{default(none)}
clause from those that are not.
\begin{ccppspecific}
Beginning with OpenMP 4.0, variables with \bcode{const}-qualified type and no mutable member
are no longer predetermined shared. Thus, these variables (variable \ucode{c} in the example)
need to be explicitly listed
in data-sharing attribute clauses when the \kcode{default(none)} clause is specified.
\cnexample{default_none}{1}
\end{ccppspecific}
\fexample{default_none}{1}