Experimental library header <experimental/string_view>
From cppreference.net
<
cpp
|
header
|
experimental
Dieser Header ist Teil des Library Fundamentals TS ( v1 , v2 ).
Inhaltsverzeichnis |
Klassen
| Name | Beschreibung |
| std::experimental::basic_string_view (library fundamentals TS) | Klassentemplate, das eine Referenz auf eine Zeichenkette repräsentiert (Klassentemplate) |
| std::experimental::string_view (library fundamentals TS) | std:: experimental :: basic_string_view < char > (Typdefinition) |
| std::experimental::wstring_view (library fundamentals TS) | std:: experimental :: basic_string_view < wchar_t > (Typdefinition) |
| std::experimental::u16string_view (library fundamentals TS) | std:: experimental :: basic_string_view < char16_t > (Typdefinition) |
| std::experimental::u32string_view (library fundamentals TS) | std:: experimental :: basic_string_view < char32_t > (Typdefinition) |
| std:: hash < std:: experimental :: string_view > (library fundamentals TS) | (Klassentemplate-Spezialisierung) |
| std:: hash < std:: experimental :: u16string_view > (library fundamentals TS) | (Klassentemplate-Spezialisierung) |
| std:: hash < std:: experimental :: u32string_view > (library fundamentals TS) | (Klassentemplate-Spezialisierung) |
| std:: hash < std:: experimental :: wstring_view > (library fundamentals TS) | (Klassentemplate-Spezialisierung) |
Funktionen
|
vergleicht zwei Views lexikographisch
(Funktions-Template) |
|
Ausgabe |
|
|
führt Stream-Ausgabe für Views durch
(Funktions-Template) |
|
Übersicht
namespace std { namespace experimental { inline namespace fundamentals_v1 { // 7.2, Klassentemplate basic_string_view template<class CharT, class Traits = char_traits<CharT>> class basic_string_view; // 7.9, basic_string_view Nicht-Mitglied-Vergleichsfunktionen template<class CharT, class Traits> constexpr bool operator==(basic_string_view<CharT, Traits> x, basic_string_view<CharT, Traits> y) noexcept; template<class CharT, class Traits> constexpr bool operator!=(basic_string_view<CharT, Traits> x, basic_string_view<CharT, Traits> y) noexcept; template<class CharT, class Traits> constexpr bool operator< (basic_string_view<CharT, Traits> x, basic_string_view<CharT, Traits> y) noexcept; template<class CharT, class Traits> constexpr bool operator> (basic_string_view<CharT, Traits> x, basic_string_view<CharT, Traits> y) noexcept; template<class CharT, class Traits> constexpr bool operator<=(basic_string_view<CharT, Traits> x, basic_string_view<CharT, Traits> y) noexcept; template<class CharT, class Traits> constexpr bool operator>=(basic_string_view<CharT, Traits> x, basic_string_view<CharT, Traits> y) noexcept; // /* siehe Beschreibung */, ausreichende zusätzliche Überladungen der Vergleichsfunktionen // 7.10, Einfüge- und Extraktionsoperatoren template<class CharT, class Traits> basic_ostream<CharT, Traits>& operator<<(basic_ostream<CharT, Traits>& os, basic_string_view<CharT, Traits> str); // basic_string_view Typdefinitionen typedef basic_string_view<char> string_view; typedef basic_string_view<char16_t> u16string_view; typedef basic_string_view<char32_t> u32string_view; typedef basic_string_view<wchar_t> wstring_view; } // namespace fundamentals_v1 } // namespace experimental // 7.11, Hash-Unterstützung template <class T> struct hash; template <> struct hash<experimental::string_view>; template <> struct hash<experimental::u16string_view>; template <> struct hash<experimental::u32string_view>; template <> struct hash<experimental::wstring_view>; } // namespace std