xref: /aosp_15_r20/external/cronet/third_party/libc++/src/modules/std/fstream.cppm (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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
10module;
11#include <__config>
12#ifndef _LIBCPP_HAS_NO_LOCALIZATION
13#  include <fstream>
14#endif
15
16export module std:fstream;
17#ifndef _LIBCPP_HAS_NO_LOCALIZATION
18export namespace std {
19  using std::basic_filebuf;
20
21  using std::swap;
22
23  using std::filebuf;
24#  ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
25  using std::wfilebuf;
26#  endif
27
28  using std::basic_ifstream;
29
30  using std::ifstream;
31#  ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
32  using std::wifstream;
33#  endif
34
35  using std::basic_ofstream;
36
37  using std::ofstream;
38#  ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
39  using std::wofstream;
40#  endif
41
42  using std::basic_fstream;
43
44  using std::fstream;
45#  ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
46  using std::wfstream;
47#  endif
48} // namespace std
49#endif // _LIBCPP_HAS_NO_LOCALIZATION
50