Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.04 KB

unique-cpp.md

File metadata and controls

42 lines (30 loc) · 1.04 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: unique (C++)
unique (C++ COM Attribute)
10/02/2018
vc-attr.unique
unique attribute
abd7ed14-5ae7-44a8-8333-0058e9c92b2f

unique (C++)

Specifies a unique pointer.

Syntax

[unique]

Remarks

The unique C++ attribute has the same functionality as the unique MIDL attribute.

Example

See the ref example for a sample use of unique.

Requirements

Attribute context Value
Applies to typedef, struct, union, interface parameter, interface method
Repeatable No
Required attributes None
Invalid attributes None

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

See also

IDL Attributes
Typedef, Enum, Union, and Struct Attributes
Parameter Attributes