Skip to content

Latest commit

 

History

History
67 lines (49 loc) · 2.15 KB

platform-arrayreference-class.md

File metadata and controls

67 lines (49 loc) · 2.15 KB
title Platform::ArrayReference Class | Microsoft Docs
ms.custom
ms.date 12/30/2016
ms.prod windows-client-threshold
ms.reviewer
ms.suite
ms.tgt_pltfrm
ms.topic language-reference
f1_keywords
Platform/Platform::ArrayReference
dev_langs
C++
helpviewer_keywords
Platform::ArrayReference Class
ms.assetid 9ab3b15e-8a60-4600-8fcb-7d6c86284f4b
caps.latest.revision 4
author ghogen
ms.author ghogen
manager ghogen

Platform::ArrayReference Class

ArrayReference is an optimization type that you can substitute for Platform::Array^ in input parameters when you want to fill a C-style array with the input data.

Syntax

  
  

Members

Public Constructors

Name Description
ArrayReference::ArrayReference Constructor Initializes a new instance of the ArrayReference class.

Public Operators

Name Description
ArrayReference::operator() Operator Converts this ArrayReference to a Platform::Array<T>^*.
ArrayReference::operator= Operator Assigns the contents of another ArrayReference to this instance.

Exceptions

Remarks

By using ArrayReference to fill a C-style array, you avoid the extra copy operation that would be involved in copying first to a Platform::Array variable, and then into the C-style array. When you use ArrayReference, there is only one copy operation. For a code example, see Array and WriteOnlyArray.

Requirements

Minimum supported client: [!INCLUDEwin8]

Minimum supported server: [!INCLUDEwinserver8]

Namespace: Platform

Header: vccorlib.h

Subsection Heading

See Also

Platform namespace