[#bsl-basic_string-0ce-erase-07] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0ce.adoc[basic_string<char16_t>]::erase :relfileprefix: ../../ :mrdocs: Erase a character at the specified `position` from this string, and return an iterator providing modifiable access to the character at `position` prior to erasing. If no such character exists, return `end()`. The behavior is undefined unless `position` is within the half‐open range `[cbegin() .. cend())]`. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0ce/iterator.adoc[iterator] erase(xref:bsl/basic_string-0ce/const_iterator.adoc[const_iterator] position); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#