User‐defined literal creating a wstring_view from a wide character sequence.

Synopsis

Declared in <bslstl_stringview.h>

std::wstring_view
operator""_sv(
    wchar_t const* characterString,
    std::size_t length);

Description

Convert a wide character sequence of the specified length excluding the terminating null character starting at the beginning of the specified characterString to a wstring_view object.

Return Value

wstring_view referring to the wide character sequence

Parameters

Name

Description

characterString

wide character sequence to convert

length

number of characters excluding the terminating null

Created with MrDocs