Revert "[libc] Use best-fit binary trie to make malloc logarithmic" (#117065)
[llvm-project.git] / libcxx / include / __fwd / sstream.h
blobc176db6e5ada04c093727ab04ad638f40c74e4f6
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef _LIBCPP___FWD_SSTREAM_H
10 #define _LIBCPP___FWD_SSTREAM_H
12 #include <__config>
13 #include <__fwd/memory.h>
14 #include <__fwd/string.h>
16 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
17 # pragma GCC system_header
18 #endif
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>;
42 #endif
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