[#BloombergLP-balcl-CommandLineOptionsHandle-the-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/CommandLineOptionsHandle.adoc[CommandLineOptionsHandle]::the :relfileprefix: ../../../ :mrdocs: `the` overloads == Synopses Declared in `<balcl_commandline.h>` Return a `const` reference to the value of the option at the specified `index`. Template parameter `TYPE` must be one of the supported types (see {Supported Types}). The behavior is undefined unless `index < numOptions()`, the option has the (template parameter) `TYPE` (i.e., `OptionType::TypeToEnum<TYPE>::value == type(index)`), and the option has a value (i.e., `false == value(index).isNull()`). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> TYPE const& xref:BloombergLP/balcl/CommandLineOptionsHandle/the-0e.adoc[the](std::size_t index) const; ---- [.small]#xref:BloombergLP/balcl/CommandLineOptionsHandle/the-0e.adoc[_» more..._]# Return a `const` reference to the value of the option having the specified `name`. Template parameter `TYPE` must be one of the supported types (see {Supported Types}). The behavior is undefined unless this handle object has a `name` option (i.e., `0 <= index(name)`), the option has (template parameter) `TYPE` (i.e., `OptionType::TypeToEnum<TYPE>::value == type(name)`), and the option has a value (i.e., `false == value(name).isNull()`). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> TYPE const& xref:BloombergLP/balcl/CommandLineOptionsHandle/the-08.adoc[the](std::string_view const& name) const; ---- [.small]#xref:BloombergLP/balcl/CommandLineOptionsHandle/the-08.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#