[#BloombergLP-balcl-CommandLineOptionsHandle-the-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/CommandLineOptionsHandle.adoc[CommandLineOptionsHandle]::the
:relfileprefix: ../../../
:mrdocs:

Return a `const` reference to the value of the option at the specified `index`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
TYPE const&
the(std::size&lowbar;t index) const;
----

== Description

Template parameter `TYPE` must be one of the supported types (see &lcub;Supported Types&rcub;)&period; The behavior is undefined unless `index &lt; numOptions()`, the option has the (template parameter) `TYPE` (i&period;e&period;, `OptionType&colon;&colon;TypeToEnum&lt;TYPE&gt;&colon;&colon;value &equals;&equals; type(index)`), and the option has a value (i&period;e&period;, `false &equals;&equals; value(index)&period;isNull()`)&period;

== Return Value

`const` reference to the value of the option at `index`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *index*
| zero&hyphen;based option position
|===


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