Experimental library header <experimental/string_view>
From cppreference.net
<
cpp
|
header
|
experimental
이 헤더는 Library Fundamentals TS( v1 , v2 )의 일부입니다.
목차 |
클래스
| 이름 | 설명 |
| std::experimental::basic_string_view (라이브러리 펀더멘털 TS) | 문자 문자열에 대한 참조를 나타내는 클래스 템플릿 (클래스 템플릿) |
| std::experimental::string_view (라이브러리 펀더멘털 TS) | std:: experimental :: basic_string_view < char > (typedef) |
| std::experimental::wstring_view (라이브러리 펀더멘털 TS) | std:: experimental :: basic_string_view < wchar_t > (typedef) |
| std::experimental::u16string_view (라이브러리 펀더멘털 TS) | std:: experimental :: basic_string_view < char16_t > (typedef) |
| std::experimental::u32string_view (라이브러리 펀더멘털 TS) | std:: experimental :: basic_string_view < char32_t > (typedef) |
| std:: hash < std:: experimental :: string_view > (라이브러리 펀더멘털 TS) | (클래스 템플릿 특수화) |
| std:: hash < std:: experimental :: u16string_view > (라이브러리 펀더멘털 TS) | (클래스 템플릿 특수화) |
| std:: hash < std:: experimental :: u32string_view > (라이브러리 펀더멘털 TS) | (클래스 템플릿 특수화) |
| std:: hash < std:: experimental :: wstring_view > (라이브러리 펀더멘털 TS) | (클래스 템플릿 특수화) |
함수
|
두 뷰를 사전식으로 비교
(함수 템플릿) |
|
출력 |
|
|
뷰에 대한 스트림 출력 수행
(함수 템플릿) |
|
시놉시스
namespace std { namespace experimental { inline namespace fundamentals_v1 { // 7.2, 클래스 템플릿 basic_string_view template<class CharT, class Traits = char_traits<CharT>> class basic_string_view; // 7.9, basic_string_view 비멤버 비교 함수 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; // /* 설명 참조 */, 비교 함수의 충분한 추가 오버로드 // 7.10, 삽입자와 추출자 template<class CharT, class Traits> basic_ostream<CharT, Traits>& operator<<(basic_ostream<CharT, Traits>& os, basic_string_view<CharT, Traits> str); // basic_string_view typedef 이름 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; } // 네임스페이스 fundamentals_v1 } // 네임스페이스 experimental // 7.11, 해시 지원 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>; } // 네임스페이스 std