37 namespace string_literals {
41 inline std::basic_string<char>
operator ""_s(
42 const char* str, std::size_t len)
44 return std::basic_string<char>(str, len);
47 inline std::basic_string<wchar_t>
operator ""_s(
48 const wchar_t* str, std::size_t len)
50 return std::basic_string<wchar_t>(str, len);
53 inline std::basic_string<char16_t>
operator ""_s(
54 const char16_t* str, std::size_t len)
56 return std::basic_string<char16_t>(str, len);
59 inline std::basic_string<char32_t>
operator ""_s(
60 const char32_t* str, std::size_t len)
62 return std::basic_string<char32_t>(str, len);
C++ amazing templates and reusable implementations awesomeness.