max_is
Designates the maximum value for a valid array index.
Syntax
[ max_is("expression") ]
Parameters
expression
One or more C-language expressions. Empty argument slots are allowed.
Remarks
The max_is C++ attribute has the same functionality as the max_is MIDL attribute.
Requirements
Attribute context | Value |
---|---|
Applies to | Field in struct or union , interface parameter, interface method |
Repeatable | No |
Required attributes | None |
Invalid attributes | size_is |
For more information, see Attribute Contexts.
Example
See first_is for an example of how to specify a section of an array.
See also
IDL Attributes
Typedef, Enum, Union, and Struct Attributes
Parameter Attributes
first_is
last_is
length_is
size_is
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for