Skip to content

Latest commit

 

History

History
79 lines (68 loc) · 2 KB

File metadata and controls

79 lines (68 loc) · 2 KB
title size_is | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic language-reference
f1_keywords
vc-attr.size_is
dev_langs
C++
helpviewer_keywords
size_is attribute
ms.assetid 70192d09-f6c5-4d52-b3fe-303f8cb10aa5
caps.latest.revision 9
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

size_is

Specify the size of memory allocated for sized pointers, sized pointers to sized pointers, and single- or multidimensional arrays.

Syntax

  
      [ size_is(  
   "expression"  
) ]  

Parameters

expression
The size of memory allocated for sized pointers.

Remarks

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

Example

See the example for first_is for a sample of how to specify a section of an array.

Requirements

Attribute Context

Applies to Field in struct or union, interface parameter, interface method
Repeatable No
Required attributes None
Invalid attributes max_is

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

See Also

IDL Attributes
Typedef, Enum, Union, and Struct Attributes
Parameter Attributes
first_is
last_is
max_is
length_is