Create a wstring from a user‐defined string literal.

Synopsis

Declared in <bslstl_string.h>

wstring
operator""_s(
    wchar_t const* characterString,
    std::size_t length);

Return Value

string constructed from the character literal

Parameters

Name

Description

characterString

pointer to the character sequence

length

number of characters excluding the null terminator

Created with MrDocs