[#bsl-basic_string-0faf-front-0d] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::front :relfileprefix: ../../ :mrdocs: Return a reference providing non‐modifiable access to the character at the first position in this string. The behavior is undefined if this string is empty. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- CHAR_TYPE const& front() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#