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

`value` overloads

== Synopses

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

Return a `const` reference to the value (possibly in a null state) of the option at the specified `index` in this handle object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balcl/OptionValue.adoc[OptionValue] const&
xref:BloombergLP/balcl/CommandLineOptionsHandle/value-0d.adoc[value](std::size&lowbar;t index) const;
----

[.small]#xref:BloombergLP/balcl/CommandLineOptionsHandle/value-0d.adoc[_» more&period;&period;&period;_]#

Return a `const` reference to the value (possibly in a null state) of this handle object&apos;s option having the specified `name`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balcl/OptionValue.adoc[OptionValue] const&
xref:BloombergLP/balcl/CommandLineOptionsHandle/value-08.adoc[value](std::string&lowbar;view const& name) const;
----

[.small]#xref:BloombergLP/balcl/CommandLineOptionsHandle/value-08.adoc[_» more&period;&period;&period;_]#

== Return Value

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

== Parameters

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


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