[#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`. == Synopsis Declared in `<balcl_optiontype.h>` [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; otherwise return `e_VOID`. `e_VOID == toArrayType(e_BOOL)` because an array of boolean values is not allowed as a command‐line‐option type. Note that `type == fromArrayType(TYPE)` when `TYPE != e_VOID` is returned. == Return Value array option type for `type`, or `e_VOID` if none == Parameters [cols="1,4"] |=== | Name| Description | *type* | scalar option type enumerator |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#