[#bsl-basic_string-0ce-operator_subs-0b] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0ce.adoc[basic_string<char16_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-0ce/const_reference.adoc[const_reference] operator[](xref:bsl/basic_string-0ce/size_type.adoc[size_type] position) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#