1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef _LIBCPP___FWD_SSTREAM_H
10 #define _LIBCPP___FWD_SSTREAM_H
13 #include <__fwd/memory.h>
14 #include <__fwd/string.h>
16 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
17 # pragma GCC system_header
20 _LIBCPP_BEGIN_NAMESPACE_STD
22 template <class _CharT
, class _Traits
= char_traits
<_CharT
>, class _Allocator
= allocator
<_CharT
> >
23 class _LIBCPP_TEMPLATE_VIS basic_stringbuf
;
25 template <class _CharT
, class _Traits
= char_traits
<_CharT
>, class _Allocator
= allocator
<_CharT
> >
26 class _LIBCPP_TEMPLATE_VIS basic_istringstream
;
27 template <class _CharT
, class _Traits
= char_traits
<_CharT
>, class _Allocator
= allocator
<_CharT
> >
28 class _LIBCPP_TEMPLATE_VIS basic_ostringstream
;
29 template <class _CharT
, class _Traits
= char_traits
<_CharT
>, class _Allocator
= allocator
<_CharT
> >
30 class _LIBCPP_TEMPLATE_VIS basic_stringstream
;
32 using stringbuf
= basic_stringbuf
<char>;
33 using istringstream
= basic_istringstream
<char>;
34 using ostringstream
= basic_ostringstream
<char>;
35 using stringstream
= basic_stringstream
<char>;
37 #if _LIBCPP_HAS_WIDE_CHARACTERS
38 using wstringbuf
= basic_stringbuf
<wchar_t>;
39 using wistringstream
= basic_istringstream
<wchar_t>;
40 using wostringstream
= basic_ostringstream
<wchar_t>;
41 using wstringstream
= basic_stringstream
<wchar_t>;
44 template <class _CharT
, class _Traits
, class _Allocator
>
45 class _LIBCPP_PREFERRED_NAME(stringbuf
) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wstringbuf
)) basic_stringbuf
;
46 template <class _CharT
, class _Traits
, class _Allocator
>
47 class _LIBCPP_PREFERRED_NAME(istringstream
)
48 _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wistringstream
)) basic_istringstream
;
49 template <class _CharT
, class _Traits
, class _Allocator
>
50 class _LIBCPP_PREFERRED_NAME(ostringstream
)
51 _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wostringstream
)) basic_ostringstream
;
52 template <class _CharT
, class _Traits
, class _Allocator
>
53 class _LIBCPP_PREFERRED_NAME(stringstream
)
54 _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wstringstream
)) basic_stringstream
;
56 _LIBCPP_END_NAMESPACE_STD
58 #endif // _LIBCPP___FWD_SSTREAM_H