[#bsl-basic_string-0faf-2conversion-0f] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::operator basic_string_view<CHAR_TYPE, CHAR_TRAITS> :relfileprefix: ../../ :mrdocs: Convert this string to a matching `basic_string_view`. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- operator basic_string_view<CHAR_TYPE, CHAR_TRAITS>() const; ---- == Description The return view will contain the same sequence of characters as this object. Note that this conversion operator can be invoked implicitly (e.g., during argument passing). == Return Value string view referring to this string's character sequence [.small]#Created with https://www.mrdocs.com[MrDocs]#