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

Metafunction that maps a C&plus;&plus; type to its corresponding `Enum` value&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
struct TypeToEnum;
----

== Description

`TypeToEnum&lt;TYPE&gt;&colon;&colon;value` is the `Enum` value corresponding to the (template parameter) `TYPE` where `TYPE` matches one of the `typedef`s defined above or `void`&period; See `EnumToType` for the inverse metafunction&period;

== Specializations

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balcl/OptionType/TypeToEnum-0b.adoc[`TypeToEnum&lt;OptionType::Bool&gt;`] 
| Specialization of `TypeToEnum` for `Bool`&period;
| xref:BloombergLP/balcl/OptionType/TypeToEnum-078.adoc[`TypeToEnum&lt;OptionType::Char&gt;`] 
| Specialization of `TypeToEnum` for `Char`&period;
| xref:BloombergLP/balcl/OptionType/TypeToEnum-09a.adoc[`TypeToEnum&lt;OptionType::CharArray&gt;`] 
| Specialization of `TypeToEnum` for `CharArray`&period;
| xref:BloombergLP/balcl/OptionType/TypeToEnum-0af.adoc[`TypeToEnum&lt;OptionType::Date&gt;`] 
| Specialization of `TypeToEnum` for `Date`&period;
| xref:BloombergLP/balcl/OptionType/TypeToEnum-08b.adoc[`TypeToEnum&lt;OptionType::DateArray&gt;`] 
| Specialization of `TypeToEnum` for `DateArray`&period;
| xref:BloombergLP/balcl/OptionType/TypeToEnum-081.adoc[`TypeToEnum&lt;OptionType::Datetime&gt;`] 
| Specialization of `TypeToEnum` for `Datetime`&period;
| xref:BloombergLP/balcl/OptionType/TypeToEnum-0ec.adoc[`TypeToEnum&lt;OptionType::DatetimeArray&gt;`] 
| Specialization of `TypeToEnum` for `DatetimeArray`&period;
| xref:BloombergLP/balcl/OptionType/TypeToEnum-007.adoc[`TypeToEnum&lt;OptionType::Double&gt;`] 
| Specialization of `TypeToEnum` for `Double`&period;
| xref:BloombergLP/balcl/OptionType/TypeToEnum-07a.adoc[`TypeToEnum&lt;OptionType::DoubleArray&gt;`] 
| Specialization of `TypeToEnum` for `DoubleArray`&period;
| xref:BloombergLP/balcl/OptionType/TypeToEnum-073.adoc[`TypeToEnum&lt;OptionType::Int&gt;`] 
| Specialization of `TypeToEnum` for `Int`&period;
| xref:BloombergLP/balcl/OptionType/TypeToEnum-074.adoc[`TypeToEnum&lt;OptionType::Int64&gt;`] 
| Specialization of `TypeToEnum` for `Int64`&period;
| xref:BloombergLP/balcl/OptionType/TypeToEnum-08d.adoc[`TypeToEnum&lt;OptionType::Int64Array&gt;`] 
| Specialization of `TypeToEnum` for `Int64Array`&period;
| xref:BloombergLP/balcl/OptionType/TypeToEnum-0aa.adoc[`TypeToEnum&lt;OptionType::IntArray&gt;`] 
| Specialization of `TypeToEnum` for `IntArray`&period;
| xref:BloombergLP/balcl/OptionType/TypeToEnum-002.adoc[`TypeToEnum&lt;OptionType::String&gt;`] 
| Specialization of `TypeToEnum` for `String`&period;
| xref:BloombergLP/balcl/OptionType/TypeToEnum-0e5.adoc[`TypeToEnum&lt;OptionType::StringArray&gt;`] 
| Specialization of `TypeToEnum` for `StringArray`&period;
| xref:BloombergLP/balcl/OptionType/TypeToEnum-083.adoc[`TypeToEnum&lt;OptionType::Time&gt;`] 
| Specialization of `TypeToEnum` for `Time`&period;
| xref:BloombergLP/balcl/OptionType/TypeToEnum-0a9.adoc[`TypeToEnum&lt;OptionType::TimeArray&gt;`] 
| Specialization of `TypeToEnum` for `TimeArray`&period;
| xref:BloombergLP/balcl/OptionType/TypeToEnum-090.adoc[`TypeToEnum&lt;void&gt;`] 
| Specialization of `TypeToEnum` for `void`&period;
|===



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