xref: /freebsd-src/contrib/llvm-project/libcxx/include/__fwd/sstream.h (revision 0fca6ea1d4eea4c934cfff25ac9ee8ad6fe95583)
106c3fb27SDimitry Andric //===----------------------------------------------------------------------===//
206c3fb27SDimitry Andric //
306c3fb27SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
406c3fb27SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
506c3fb27SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
606c3fb27SDimitry Andric //
706c3fb27SDimitry Andric //===----------------------------------------------------------------------===//
806c3fb27SDimitry Andric 
906c3fb27SDimitry Andric #ifndef _LIBCPP___FWD_SSTREAM_H
1006c3fb27SDimitry Andric #define _LIBCPP___FWD_SSTREAM_H
1106c3fb27SDimitry Andric 
1206c3fb27SDimitry Andric #include <__config>
13*0fca6ea1SDimitry Andric #include <__fwd/memory.h>
1406c3fb27SDimitry Andric #include <__fwd/string.h>
1506c3fb27SDimitry Andric 
1606c3fb27SDimitry Andric #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
1706c3fb27SDimitry Andric #  pragma GCC system_header
1806c3fb27SDimitry Andric #endif
1906c3fb27SDimitry Andric 
2006c3fb27SDimitry Andric _LIBCPP_BEGIN_NAMESPACE_STD
2106c3fb27SDimitry Andric 
2206c3fb27SDimitry Andric template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
2306c3fb27SDimitry Andric class _LIBCPP_TEMPLATE_VIS basic_stringbuf;
2406c3fb27SDimitry Andric 
2506c3fb27SDimitry Andric template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
2606c3fb27SDimitry Andric class _LIBCPP_TEMPLATE_VIS basic_istringstream;
2706c3fb27SDimitry Andric template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
2806c3fb27SDimitry Andric class _LIBCPP_TEMPLATE_VIS basic_ostringstream;
2906c3fb27SDimitry Andric template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
3006c3fb27SDimitry Andric class _LIBCPP_TEMPLATE_VIS basic_stringstream;
3106c3fb27SDimitry Andric 
3206c3fb27SDimitry Andric using stringbuf     = basic_stringbuf<char>;
3306c3fb27SDimitry Andric using istringstream = basic_istringstream<char>;
3406c3fb27SDimitry Andric using ostringstream = basic_ostringstream<char>;
3506c3fb27SDimitry Andric using stringstream  = basic_stringstream<char>;
3606c3fb27SDimitry Andric 
3706c3fb27SDimitry Andric #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
3806c3fb27SDimitry Andric using wstringbuf     = basic_stringbuf<wchar_t>;
3906c3fb27SDimitry Andric using wistringstream = basic_istringstream<wchar_t>;
4006c3fb27SDimitry Andric using wostringstream = basic_ostringstream<wchar_t>;
4106c3fb27SDimitry Andric using wstringstream  = basic_stringstream<wchar_t>;
4206c3fb27SDimitry Andric #endif
4306c3fb27SDimitry Andric 
4406c3fb27SDimitry Andric template <class _CharT, class _Traits, class _Allocator>
4506c3fb27SDimitry Andric class _LIBCPP_PREFERRED_NAME(stringbuf) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wstringbuf)) basic_stringbuf;
4606c3fb27SDimitry Andric template <class _CharT, class _Traits, class _Allocator>
4706c3fb27SDimitry Andric class _LIBCPP_PREFERRED_NAME(istringstream)
4806c3fb27SDimitry Andric     _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wistringstream)) basic_istringstream;
4906c3fb27SDimitry Andric template <class _CharT, class _Traits, class _Allocator>
5006c3fb27SDimitry Andric class _LIBCPP_PREFERRED_NAME(ostringstream)
5106c3fb27SDimitry Andric     _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wostringstream)) basic_ostringstream;
5206c3fb27SDimitry Andric template <class _CharT, class _Traits, class _Allocator>
5306c3fb27SDimitry Andric class _LIBCPP_PREFERRED_NAME(stringstream)
5406c3fb27SDimitry Andric     _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wstringstream)) basic_stringstream;
5506c3fb27SDimitry Andric 
5606c3fb27SDimitry Andric _LIBCPP_END_NAMESPACE_STD
5706c3fb27SDimitry Andric 
5806c3fb27SDimitry Andric #endif // _LIBCPP___FWD_SSTREAM_H
59