27 using namespace std::literals::string_view_literals;
29 static_assert(std::is_same<
decltype(
"Hello"sv), std::string_view>
::value,
30 "\"Hello\"s is std::string_view");
32 static_assert(std::is_same<
decltype(u8
"Hello"sv), std::string_view>
::value,
33 "u8\"Hello\"s is std::string_view");
35#ifdef _GLIBCXX_USE_WCHAR_T
36 static_assert(std::is_same<
decltype(
L"Hello"sv), std::wstring_view>
::value,
37 "L\"Hello\"s is std::wstring_view");
40 static_assert(std::is_same<
decltype(u
"Hello"sv), std::u16string_view>
::value,
41 "u\"Hello\"s is std::u16string_view");
43 static_assert(std::is_same<
decltype(U
"Hello"sv), std::u32string_view>
::value,
44 "U\"Hello\"s is std::u32string_view");