[string.view.literals]

# 27 Strings library [[strings]](./#strings)

## 27.3 String view classes [[string.view]](string.view#literals)

### 27.3.7 Suffix for basic_string_view literals [string.view.literals]

[ð](#lib:operator%22%22sv,string_view)

`constexpr string_view operator""sv(const char* str, size_t len) noexcept;
`

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/strings.tex#L1705)

*Returns*: string_view{str, len}[.](#1.sentence-1)

[ð](#lib:operator%22%22sv,u8string_view)

`constexpr u8string_view operator""sv(const char8_t* str, size_t len) noexcept;
`

[2](#2)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/strings.tex#L1715)

*Returns*: u8string_view{str, len}[.](#2.sentence-1)

[ð](#lib:operator%22%22sv,u16string_view)

`constexpr u16string_view operator""sv(const char16_t* str, size_t len) noexcept;
`

[3](#3)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/strings.tex#L1725)

*Returns*: u16string_view{str, len}[.](#3.sentence-1)

[ð](#lib:operator%22%22sv,u32string_view)

`constexpr u32string_view operator""sv(const char32_t* str, size_t len) noexcept;
`

[4](#4)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/strings.tex#L1735)

*Returns*: u32string_view{str, len}[.](#4.sentence-1)

[ð](#lib:operator%22%22sv,wstring_view)

`constexpr wstring_view operator""sv(const wchar_t* str, size_t len) noexcept;
`

[5](#5)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/strings.tex#L1745)

*Returns*: wstring_view{str, len}[.](#5.sentence-1)
