[#BloombergLP-bslstl-StringRefImp-02-operator_subs]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StringRefImp-02.adoc[StringRefImp&lt;char&gt;]::operator&lsqb;&rsqb;
:relfileprefix: ../../../
:mrdocs:

Return a reference providing a non&hyphen;modifiable access to the character at the specified `index` in the string bound to this reference&period; This reference remains valid as long as the string currently bound to this object remains valid&period; The behavior is undefined unless `0 &lt;&equals; index &lt; length()`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;stringref&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/StringRefImp-02/const_reference.adoc[const&lowbar;reference]
operator&lsqb;&rsqb;(xref:BloombergLP/bslstl/StringRefImp-0c/size_type.adoc[size&lowbar;type] index) const;
----


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