xref: /freebsd-src/contrib/llvm-project/libcxx/include/__fwd/sstream.h (revision 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e)
1*06c3fb27SDimitry Andric //===----------------------------------------------------------------------===//
2*06c3fb27SDimitry Andric //
3*06c3fb27SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*06c3fb27SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*06c3fb27SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*06c3fb27SDimitry Andric //
7*06c3fb27SDimitry Andric //===----------------------------------------------------------------------===//
8*06c3fb27SDimitry Andric 
9*06c3fb27SDimitry Andric #ifndef _LIBCPP___FWD_SSTREAM_H
10*06c3fb27SDimitry Andric #define _LIBCPP___FWD_SSTREAM_H
11*06c3fb27SDimitry Andric 
12*06c3fb27SDimitry Andric #include <__config>
13*06c3fb27SDimitry Andric #include <__fwd/string.h>
14*06c3fb27SDimitry Andric 
15*06c3fb27SDimitry Andric #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
16*06c3fb27SDimitry Andric #  pragma GCC system_header
17*06c3fb27SDimitry Andric #endif
18*06c3fb27SDimitry Andric 
19*06c3fb27SDimitry Andric _LIBCPP_BEGIN_NAMESPACE_STD
20*06c3fb27SDimitry Andric 
21*06c3fb27SDimitry Andric template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
22*06c3fb27SDimitry Andric class _LIBCPP_TEMPLATE_VIS basic_stringbuf;
23*06c3fb27SDimitry Andric 
24*06c3fb27SDimitry Andric template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
25*06c3fb27SDimitry Andric class _LIBCPP_TEMPLATE_VIS basic_istringstream;
26*06c3fb27SDimitry Andric template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
27*06c3fb27SDimitry Andric class _LIBCPP_TEMPLATE_VIS basic_ostringstream;
28*06c3fb27SDimitry Andric template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
29*06c3fb27SDimitry Andric class _LIBCPP_TEMPLATE_VIS basic_stringstream;
30*06c3fb27SDimitry Andric 
31*06c3fb27SDimitry Andric using stringbuf     = basic_stringbuf<char>;
32*06c3fb27SDimitry Andric using istringstream = basic_istringstream<char>;
33*06c3fb27SDimitry Andric using ostringstream = basic_ostringstream<char>;
34*06c3fb27SDimitry Andric using stringstream  = basic_stringstream<char>;
35*06c3fb27SDimitry Andric 
36*06c3fb27SDimitry Andric #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
37*06c3fb27SDimitry Andric using wstringbuf     = basic_stringbuf<wchar_t>;
38*06c3fb27SDimitry Andric using wistringstream = basic_istringstream<wchar_t>;
39*06c3fb27SDimitry Andric using wostringstream = basic_ostringstream<wchar_t>;
40*06c3fb27SDimitry Andric using wstringstream  = basic_stringstream<wchar_t>;
41*06c3fb27SDimitry Andric #endif
42*06c3fb27SDimitry Andric 
43*06c3fb27SDimitry Andric template <class _CharT, class _Traits, class _Allocator>
44*06c3fb27SDimitry Andric class _LIBCPP_PREFERRED_NAME(stringbuf) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wstringbuf)) basic_stringbuf;
45*06c3fb27SDimitry Andric template <class _CharT, class _Traits, class _Allocator>
46*06c3fb27SDimitry Andric class _LIBCPP_PREFERRED_NAME(istringstream)
47*06c3fb27SDimitry Andric     _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wistringstream)) basic_istringstream;
48*06c3fb27SDimitry Andric template <class _CharT, class _Traits, class _Allocator>
49*06c3fb27SDimitry Andric class _LIBCPP_PREFERRED_NAME(ostringstream)
50*06c3fb27SDimitry Andric     _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wostringstream)) basic_ostringstream;
51*06c3fb27SDimitry Andric template <class _CharT, class _Traits, class _Allocator>
52*06c3fb27SDimitry Andric class _LIBCPP_PREFERRED_NAME(stringstream)
53*06c3fb27SDimitry Andric     _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wstringstream)) basic_stringstream;
54*06c3fb27SDimitry Andric 
55*06c3fb27SDimitry Andric _LIBCPP_END_NAMESPACE_STD
56*06c3fb27SDimitry Andric 
57*06c3fb27SDimitry Andric #endif // _LIBCPP___FWD_SSTREAM_H
58