description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: pointer_default |
pointer_default (C++ COM Attribute) |
10/02/2018 |
|
|
2d0c7bbc-a1e8-4337-9e54-e304523e2735 |
Specifies the default pointer attribute for all pointers, except top-level pointers that appear in parameter lists.
[ pointer_default(value) ]
value
A value that describes the pointer type: ptr, ref, or unique.
The pointer_default C++ attribute has the same functionality as the pointer_default MIDL attribute.
See the example for defaultvalue for a sample use of pointer_default.
Attribute context | Value |
---|---|
Applies to | interface |
Repeatable | No |
Required attributes | None |
Invalid attributes | None |
For more information about the attribute contexts, see Attribute Contexts.