bsl::basic_string<char16_t>::operator basic_string_view<char16_t, char_traits<char16_t>>

Convert this object to a string_view type instantiated with the same character type and traits type. 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).

Synopsis

Declared in <bslstl_string.h>

operator basic_string_view<char16_t, char_traits<char16_t>>() const;