VirtualBox

source: vbox/trunk/include/iprt/nocrt/iosfwd@ 96354

Last change on this file since 96354 was 95993, checked in by vboxsync, 2 years ago

include/iprt/nocrt: More on ostream, limits. Stubbed std::sort. bugref:10261

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1/** @file
2 * IPRT / No-CRT - Minimal C++ iosfwd header.
3 */
4
5/*
6 * Copyright (C) 2022 Oracle Corporation
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 *
16 * The contents of this file may alternatively be used under the terms
17 * of the Common Development and Distribution License Version 1.0
18 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
19 * VirtualBox OSE distribution, in which case the provisions of the
20 * CDDL are applicable instead of those of the GPL.
21 *
22 * You may elect to license modified versions of this file under the
23 * terms and conditions of either the GPL or the CDDL or both.
24 */
25
26#ifndef IPRT_INCLUDED_nocrt_iosfwd
27#define IPRT_INCLUDED_nocrt_iosfwd
28#ifndef RT_WITHOUT_PRAGMA_ONCE
29# pragma once
30#endif
31
32#include <iprt/nocrt/memory>
33#include <iprt/nocrt/string>
34
35#ifdef _MSC_VER
36# pragma warning(push)
37# pragma warning(disable: 4643) /* warning C4643: Forward declaring 'ios_base' in namespace std is not permitted by the C++ Standard */
38#endif
39
40namespace std
41{
42 using streamoff = RTFOFF;
43
44 class ios_base;
45
46 template<typename a_CharType, typename a_CharTraits = std::char_traits<a_CharType> > class basic_ios;
47 template<typename a_CharType, typename a_CharTraits = std::char_traits<a_CharType> > class basic_streambuf;
48 template<typename a_CharType, typename a_CharTraits = std::char_traits<a_CharType> > class basic_istream;
49 template<typename a_CharType, typename a_CharTraits = std::char_traits<a_CharType> > class basic_ostream;
50 template<typename a_CharType, typename a_CharTraits = std::char_traits<a_CharType> > class basic_iostream;
51 template<typename a_CharType, typename a_CharTraits = std::char_traits<a_CharType> > class basic_ifstream;
52 template<typename a_CharType, typename a_CharTraits = std::char_traits<a_CharType> > class basic_ofstream;
53 template<typename a_CharType, typename a_CharTraits = std::char_traits<a_CharType> > class basic_fstream;
54
55
56 typedef basic_ios<char> ios;
57 typedef basic_streambuf<char> streambuf;
58 typedef basic_istream<char> istream;
59 typedef basic_ostream<char> ostream;
60 typedef basic_iostream<char> iostream;
61 typedef basic_ifstream<char> ifstream;
62 typedef basic_ofstream<char> ofstream;
63 typedef basic_fstream<char> fstream;
64}
65
66#ifdef _MSC_VER
67# pragma warning(pop)
68#endif
69
70#endif /* !IPRT_INCLUDED_nocrt_iosfwd */
71
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette