Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.28 KB

File metadata and controls

54 lines (39 loc) · 1.28 KB
title pointer_default (C++ COM Attribute) | Microsoft Docs
ms.custom
ms.date 10/02/2018
ms.technology
cpp-windows
ms.topic reference
f1_keywords
vc-attr.pointer_default
dev_langs
C++
helpviewer_keywords
pointer_default attribute
ms.assetid 2d0c7bbc-a1e8-4337-9e54-e304523e2735
author mikeblome
ms.author mblome
ms.workload
cplusplus
uwp

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

Applies to interface
Repeatable No
Required attributes None
Invalid attributes None

For more information about the attribute contexts, see Attribute Contexts.

See Also

IDL Attributes
Interface Attributes