| 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 |
|
|
| dev_langs |
|
|
| helpviewer_keywords |
|
|
| ms.assetid | 9ab3b15e-8a60-4600-8fcb-7d6c86284f4b | |
| caps.latest.revision | 4 | |
| author | ghogen | |
| ms.author | ghogen | |
| manager | ghogen |
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.
| Name | Description |
|---|---|
| ArrayReference::ArrayReference Constructor | Initializes a new instance of the ArrayReference class. |
| 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. |
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.
Minimum supported client: [!INCLUDEwin8]
Minimum supported server: [!INCLUDEwinserver8]
Namespace: Platform
Header: vccorlib.h