[#bsl-basic_string-0fb-operator_subs-06]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0fb.adoc[basic&lowbar;string&lt;char&gt;]::operator&lsqb;&rsqb;
:relfileprefix: ../../
:mrdocs:

Return a reference providing modifiable access to the character at the specified `position` in this string if `position &lt; length()`, or a reference providing non&hyphen;modifiable access to the null&hyphen;terminating character if `position &equals;&equals; length()`&period; The behavior is undefined unless `position &lt;&equals; length()`, and, in the case of `position &equals;&equals; length()`, the null&hyphen;terminating character is not modified through the returned reference&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/basic_string-0fb/reference.adoc[reference]
operator&lsqb;&rsqb;(xref:bsl/basic_string-0fb/size_type.adoc[size&lowbar;type] position);
----


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