Annotation Type Const
A shortcut annotation to
Cast that simply adds const to the parameter type, function, or class.
- For a parameter type, the first element is for a value like
const char*and the second for a pointer likechar const *. - For a function, the first, second, and third ones are used. The first two are applied to the return value/pointer.
The third one determines whether the function is
constor not. For backward compatibility, we keep the third element empty. - For a class, only the first one is used, and if it is
true, it means all the functions areconst. Can also be declared on aFunctionPointerin the case ofconstfunctions.
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean[]Iftrue, appliesconstto the value and to the pointer, respectively.
-
Element Details
-
value
boolean[] valueIftrue, appliesconstto the value and to the pointer, respectively.- Default:
{true, false}
-