BloombergLP::balcl::OptionType::toArrayType

Return the array option type corresponding to the specified scalar type.

Synopsis

Declared in <balcl_optiontype.h>

static
OptionType::Enum
toArrayType(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

NameDescription
typescalar option type enumerator