xref: /freebsd/contrib/llvm-project/libcxx/include/__fwd/string_view.h (revision 1b10e191f341111fad7be32ead11484dfd09b800)
1 // -*- C++ -*-
2 //===---------------------------------------------------------------------===//
3 //
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
8 //===---------------------------------------------------------------------===//
9 
10 #ifndef _LIBCPP_FWD_STRING_VIEW_H
11 #define _LIBCPP_FWD_STRING_VIEW_H
12 
13 #include <__config>
14 #include <iosfwd> // char_traits
15 
16 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
17 #  pragma GCC system_header
18 #endif
19 
20 _LIBCPP_BEGIN_NAMESPACE_STD
21 
22 template<class _CharT, class _Traits = char_traits<_CharT> >
23 class _LIBCPP_TEMPLATE_VIS basic_string_view;
24 
25 typedef basic_string_view<char>     string_view;
26 #ifndef _LIBCPP_HAS_NO_CHAR8_T
27 typedef basic_string_view<char8_t>  u8string_view;
28 #endif
29 typedef basic_string_view<char16_t> u16string_view;
30 typedef basic_string_view<char32_t> u32string_view;
31 #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
32 typedef basic_string_view<wchar_t>  wstring_view;
33 #endif
34 
35 _LIBCPP_END_NAMESPACE_STD
36 
37 #endif // _LIBCPP_FWD_STRING_VIEW_H
38