[#BloombergLP-ball-UserFields-operator_subs-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/UserFields.adoc[UserFields]::operator&lsqb;&rsqb;
:relfileprefix: ../../../
:mrdocs:

Subscript operators

== Synopses

Declared in `&lt;ball&lowbar;userfields&period;h&gt;`

Return a reference providing modifiable access to the value at the specified `index`&period; The behavior is undefined unless `0 &lt;&equals; index &amp;&amp; index &lt; length()`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/UserFieldValue.adoc[UserFieldValue]&
xref:BloombergLP/ball/UserFields/operator_subs-0d.adoc[operator&lsqb;&rsqb;](int index);
----

[.small]#xref:BloombergLP/ball/UserFields/operator_subs-0d.adoc[_» more&period;&period;&period;_]#

Return a reference providing non&hyphen;modifiable access to the value at the specified `index`&period; The behavior is undefined unless `0 &lt;&equals; index &amp;&amp; index &lt; length()`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/UserFieldValue.adoc[UserFieldValue] const&
xref:BloombergLP/ball/UserFields/operator_subs-05.adoc[operator&lsqb;&rsqb;](int index) const;
----

[.small]#xref:BloombergLP/ball/UserFields/operator_subs-05.adoc[_» more&period;&period;&period;_]#

== Return Value

* reference providing modifiable access to the value at `index`
* reference providing non&hyphen;modifiable access to the value at `index`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *index*
| zero&hyphen;based index of the value
|===


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