[#BloombergLP-balcl-OptionType-toArrayType]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/OptionType.adoc[OptionType]::toArrayType
:relfileprefix: ../../../
:mrdocs:

Return the array option type corresponding to the specified scalar `type`&period;

== Synopsis

Declared in `&lt;balcl&lowbar;optiontype&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/balcl/OptionType/Enum.adoc[OptionType::Enum]
toArrayType(xref:BloombergLP/balcl/OptionType/Enum.adoc[Enum] type);
----

== Description

If there is an array type whose elements have the specified `type` then return that array type&semi; otherwise return `e&lowbar;VOID`&period; `e&lowbar;VOID &equals;&equals; toArrayType(e&lowbar;BOOL)` because an array of boolean values is not allowed as a command&hyphen;line&hyphen;option type&period; Note that `type &equals;&equals; fromArrayType(TYPE)` when `TYPE !&equals; e&lowbar;VOID` is returned&period;

== Return Value

array option type for `type`, or `e&lowbar;VOID` if none

== Parameters

[cols="1,4"]
|===
| Name| Description
| *type*
| scalar option type enumerator
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
