pointer_default
Specifies the default pointer attribute for all pointers, except top-level pointers that appear in parameter lists.
Syntax
[ pointer_default(value) ]
Parameters
value
A value that describes the pointer type: ptr, ref, or unique.
Remarks
The pointer_default C++ attribute has the same functionality as the pointer_default MIDL attribute.
Example
See the example for defaultvalue for a sample use of pointer_default.
Requirements
Attribute context | Value |
---|---|
Applies to | interface |
Repeatable | No |
Required attributes | None |
Invalid attributes | None |
For more information about the attribute contexts, see Attribute Contexts.
See also
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