[#bsl-basic_string-0f3-operator_subs-0c] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0f3.adoc[basic_string<char32_t>]::operator[] :relfileprefix: ../../ :mrdocs: Return a reference providing non‐modifiable access to the character at the specified `position` in this string. The behavior is undefined unless `position <= length()`. Note that if `position == length()`, a reference to the null‐terminating character is returned. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0f3/const_reference.adoc[const_reference] operator[](xref:bsl/basic_string-0f3/size_type.adoc[size_type] position) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#