bsl::operator""_S

operator""_S overloads

Synopses

Declared in <bslstl_string.h>

Create a file-scope string from a user-defined literal.

string
operator""_S(
    char const* characterString,
    std::size_t length);
» more...

Create a file-scope wstring from a user-defined literal.

wstring
operator""_S(
    wchar_t const* characterString,
    std::size_t length);
» more...

Return Value

string constructed from the character literal

Parameters

NameDescription
characterStringpointer to the character sequence
lengthnumber of characters excluding the null terminator