[#bsl-basic_string-0faf-operator_subs-0fc] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::operator[] :relfileprefix: ../../ :mrdocs: Return a reference to the character at the specified position. == Synopses Declared in `<bslstl_string.h>` Return a reference to the character at the specified position. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf/reference.adoc[reference] xref:bsl/basic_string-0faf/operator_subs-0f7.adoc[operator[]](xref:bsl/basic_string-0faf/size_type.adoc[size_type] position); ---- [.small]#xref:bsl/basic_string-0faf/operator_subs-0f7.adoc[_» more..._]# Return a reference to the character at the specified position. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf/const_reference.adoc[const_reference] xref:bsl/basic_string-0faf/operator_subs-0c.adoc[operator[]](xref:bsl/basic_string-0faf/size_type.adoc[size_type] position) const; ---- [.small]#xref:bsl/basic_string-0faf/operator_subs-0c.adoc[_» more..._]# == Return Value reference to the character at `position` == Parameters [cols="1,4"] |=== | Name| Description | *position* | starting index |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#