// before C++23 may or may not be supported by// the implementation; ill-formed since C++23constwchar_t*sC=LR"--(STUV)--";// OK, raw string literalintmain(){ Output: Foobar Foobar Hello World Hello World Hello
string-literal-same as instring literal, including raw string literals balanced-token-seq-a sequence of tokens where parentheses, brackets and braces are balanced; any restrictions on thebalanced-token-seqand its meaning are implementation-defined ...
string-literal-same as instring literal, including raw string literals ud-suffix-an identifier, introduced by aliteral operatoror aliteral operator templatedeclaration (seebelow) In theintegerandfloating-pointdigit sequences, optional separators'are allowed between any two digits. ...
string-literal-same as instring literal, including raw string literals balanced-token-seq-a sequence of tokens where parentheses, brackets and braces are balanced; any restrictions on thebalanced-token-seqand its meaning are implementation-defined ...
Rawstring literals(FTM)*N24424.5Yes18.0*Yes4.714.020157.08.4Yes17.1.01.1.013.1.1, except AIX xlC 13.1.3*5.13A.06.288.52 Inline namespacesN25354.42.919.0 (2015)*Yes4.514.020157.08.4Yes17.1.01.1.011.15.13A.06.28 Inheriting constructors(FTM)*N25404.83.319.0 (2015)*Yes4.815.020157.08.4Yes17.1....
The literal consists of the shortest sequence of characters that matches the raw-string pattern. #define R "x" const char* s = R"y"; // ill-formed raw string literal, not "x" "y" const char* s2 = R"(a)" "b)"; // a raw string literal followed by a normal string literal ...
Utility to convert a pointer to a raw pointer (FTM)* P0653R2 8 6 19.22* Yes Atomic std::shared_ptr and std::weak_ptr (FTM)* P0718R2 12 19.27* std::span (FTM)* P0122R7 10 7 19.26* 10.0.0* Calendar and Time zone (FTM)* P0355R7 11 (partial)*13 (partial)*14 7 (part...
unsignedchar— type for unsigned character representation. Also used to inspectobject representations(raw memory). char— type for character representation which can be most efficiently processed on the target system (has the same representation and alignment as eithersignedcharorunsignedchar, but is alw...
Utility to convert a pointer to a raw pointer (FTM)* P0653R2 8 6 19.22* Yes Atomic std::shared_ptr and std::weak_ptr (FTM)* P0718R2 12 19.27* std::span (FTM)* P0122R7 10 7 19.26* 10.0.0* Calendar and Time zone (FTM)* P0355R7 11 (partial)*13 (partial)*14 7 (part...
str-pointer to the beginning of the raw character array literal len-length of the raw character array literal Return value The string literal. Notes These operators are declared in the namespacestd::literals::string_literals, where bothliteralsandstring_literalsare inline namespaces. Access to these...