2000-10-05 13:27:02 +02:00
|
|
|
// Iostreams base classes -*- C++ -*-
|
|
|
|
|
2004-02-27 01:49:50 +01:00
|
|
|
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
|
2002-01-24 22:14:41 +01:00
|
|
|
// Free Software Foundation, Inc.
|
2000-10-05 13:27:02 +02:00
|
|
|
//
|
|
|
|
// This file is part of the GNU ISO C++ Library. This library is free
|
|
|
|
// software; you can redistribute it and/or modify it under the
|
|
|
|
// terms of the GNU General Public License as published by the
|
|
|
|
// Free Software Foundation; either version 2, or (at your option)
|
|
|
|
// any later version.
|
|
|
|
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
|
|
// You should have received a copy of the GNU General Public License along
|
|
|
|
// with this library; see the file COPYING. If not, write to the Free
|
|
|
|
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
// USA.
|
|
|
|
|
|
|
|
// As a special exception, you may use this file as part of a free software
|
|
|
|
// library without restriction. Specifically, if other files instantiate
|
|
|
|
// templates or use macros or inline functions from this file, or you compile
|
|
|
|
// this file and link it with other files to produce an executable, this
|
|
|
|
// file does not by itself cause the resulting executable to be covered by
|
|
|
|
// the GNU General Public License. This exception does not however
|
|
|
|
// invalidate any other reasons why the executable file might be covered by
|
|
|
|
// the GNU General Public License.
|
|
|
|
|
|
|
|
//
|
2003-10-09 18:53:54 +02:00
|
|
|
// ISO C++ 14882: 27.4 Iostreams base classes
|
2000-10-05 13:27:02 +02:00
|
|
|
//
|
|
|
|
|
c_io_stdio.h: Correct grammar in comments.
2001-11-02 Phil Edwards <pme@gcc.gnu.org>
* config/io/c_io_stdio.h: Correct grammar in comments.
* docs/doxygen/Intro.3: Expand "top-level" man page.
* docs/doxygen/doxygroups.cc: New module definitions (comments).
* docs/doxygen/mainpage.doxy: Tweaks.
* docs/doxygen/run_doxygen: Update Doxygen version, massage man pages.
Add @file hooks so that headers are considered to be documented.
* include/bits/basic_ios.h, include/bits/basic_file.h,
include/bits/basic_string.h, include/bits/boost_concept_check.h,
include/bits/char_traits.h, include/bits/codecvt.h,
include/bits/concept_check.h, include/bits/cpp_type_traits.h,
include/bits/fpos.h, include/bits/gslice.h, include/bits/gslice_array.h,
include/bits/indirect_array.h, include/bits/ios_base.h,
include/bits/locale_facets.h, include/bits/localefwd.h,
include/bits/mask_array.h, include/bits/pthread_allocimpl.h,
include/bits/slice.h, include/bits/slice_array.h,
include/bits/std_algorithm.h, include/bits/std_bitset.h,
include/bits/std_complex.h, include/bits/std_deque.h,
include/bits/std_fstream.h, include/bits/std_functional.h,
include/bits/std_iomanip.h, include/bits/std_ios.h,
include/bits/std_iosfwd.h, include/bits/std_iostream.h,
include/bits/std_istream.h, include/bits/std_iterator.h,
include/bits/std_limits.h, include/bits/std_list.h,
include/bits/std_locale.h, include/bits/std_map.h,
include/bits/std_memory.h, include/bits/std_numeric.h,
include/bits/std_ostream.h, include/bits/std_queue.h,
include/bits/std_set.h, include/bits/std_sstream.h,
include/bits/std_stack.h, include/bits/std_streambuf.h,
include/bits/std_string.h, include/bits/std_utility.h,
include/bits/std_valarray.h, include/bits/std_vector.h,
include/bits/stl_algo.h, include/bits/stl_alloc.h,
include/bits/stl_bvector.h, include/bits/stl_construct.h,
include/bits/stl_deque.h, include/bits/stl_heap.h,
include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
include/bits/stl_iterator_base_types.h, include/bits/stl_list.h,
include/bits/stl_map.h, include/bits/stl_multimap.h,
include/bits/stl_multiset.h, include/bits/stl_numeric.h,
include/bits/stl_pair.h, include/bits/stl_pthread_alloc.h,
include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
include/bits/stl_relops.h, include/bits/stl_set.h,
include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
include/bits/stl_threads.h, include/bits/stl_tree.h,
include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
include/bits/stringfwd.h, include/bits/type_traits.h,
include/bits/valarray_array.h, include/bits/valarray_meta.h:
Add hooks, tweak comments only.
* include/bits/stl_algobase.h (swap, min, iter_swap): Also
document these functions.
* include/bits/stl_function.h: Tweak link comments.
From-SVN: r46717
2001-11-02 18:38:11 +01:00
|
|
|
/** @file ios_base.h
|
|
|
|
* This is an internal header file, included by other library headers.
|
|
|
|
* You should not attempt to use it directly.
|
|
|
|
*/
|
|
|
|
|
2003-07-05 06:05:45 +02:00
|
|
|
#ifndef _IOS_BASE_H
|
|
|
|
#define _IOS_BASE_H 1
|
2000-10-05 13:27:02 +02:00
|
|
|
|
2001-02-19 19:52:25 +01:00
|
|
|
#pragma GCC system_header
|
|
|
|
|
2002-01-24 22:14:41 +01:00
|
|
|
#include <bits/atomicity.h>
|
2003-01-22 17:51:52 +01:00
|
|
|
#include <bits/localefwd.h>
|
|
|
|
#include <bits/locale_classes.h>
|
2002-01-24 22:14:41 +01:00
|
|
|
|
2001-03-04 22:34:02 +01:00
|
|
|
namespace std
|
|
|
|
{
|
2000-10-05 13:27:02 +02:00
|
|
|
// The following definitions of bitmask types are enums, not ints,
|
|
|
|
// as permitted (but not required) in the standard, in order to provide
|
|
|
|
// better type safety in iostream calls. A side effect is that
|
|
|
|
// expressions involving them are no longer compile-time constants.
|
2004-11-02 20:00:19 +01:00
|
|
|
enum _Ios_Fmtflags
|
|
|
|
{
|
|
|
|
_S_boolalpha = 1L << 0,
|
|
|
|
_S_dec = 1L << 1,
|
|
|
|
_S_fixed = 1L << 2,
|
|
|
|
_S_hex = 1L << 3,
|
|
|
|
_S_internal = 1L << 4,
|
|
|
|
_S_left = 1L << 5,
|
|
|
|
_S_oct = 1L << 6,
|
|
|
|
_S_right = 1L << 7,
|
|
|
|
_S_scientific = 1L << 8,
|
|
|
|
_S_showbase = 1L << 9,
|
|
|
|
_S_showpoint = 1L << 10,
|
|
|
|
_S_showpos = 1L << 11,
|
|
|
|
_S_skipws = 1L << 12,
|
|
|
|
_S_unitbuf = 1L << 13,
|
|
|
|
_S_uppercase = 1L << 14,
|
|
|
|
_S_adjustfield = _S_left | _S_right | _S_internal,
|
|
|
|
_S_basefield = _S_dec | _S_oct | _S_hex,
|
|
|
|
_S_floatfield = _S_scientific | _S_fixed,
|
|
|
|
_S_ios_fmtflags_end = 1L << 16
|
|
|
|
};
|
2000-10-05 13:27:02 +02:00
|
|
|
|
2004-02-08 05:46:42 +01:00
|
|
|
inline _Ios_Fmtflags
|
2000-10-05 13:27:02 +02:00
|
|
|
operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
|
|
|
|
{ return _Ios_Fmtflags(static_cast<int>(__a) & static_cast<int>(__b)); }
|
|
|
|
|
2004-02-08 05:46:42 +01:00
|
|
|
inline _Ios_Fmtflags
|
2000-10-05 13:27:02 +02:00
|
|
|
operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
|
|
|
|
{ return _Ios_Fmtflags(static_cast<int>(__a) | static_cast<int>(__b)); }
|
|
|
|
|
2004-02-08 05:46:42 +01:00
|
|
|
inline _Ios_Fmtflags
|
2000-10-05 13:27:02 +02:00
|
|
|
operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
|
|
|
|
{ return _Ios_Fmtflags(static_cast<int>(__a) ^ static_cast<int>(__b)); }
|
|
|
|
|
2004-11-02 20:00:19 +01:00
|
|
|
inline _Ios_Fmtflags&
|
2000-10-05 13:27:02 +02:00
|
|
|
operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
|
|
|
|
{ return __a = __a | __b; }
|
|
|
|
|
2004-11-02 20:00:19 +01:00
|
|
|
inline _Ios_Fmtflags&
|
2000-10-05 13:27:02 +02:00
|
|
|
operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
|
|
|
|
{ return __a = __a & __b; }
|
|
|
|
|
2004-11-02 20:00:19 +01:00
|
|
|
inline _Ios_Fmtflags&
|
2000-10-05 13:27:02 +02:00
|
|
|
operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
|
|
|
|
{ return __a = __a ^ __b; }
|
|
|
|
|
2004-02-08 05:46:42 +01:00
|
|
|
inline _Ios_Fmtflags
|
2000-10-05 13:27:02 +02:00
|
|
|
operator~(_Ios_Fmtflags __a)
|
|
|
|
{ return _Ios_Fmtflags(~static_cast<int>(__a)); }
|
|
|
|
|
|
|
|
|
2004-11-02 20:00:19 +01:00
|
|
|
enum _Ios_Openmode
|
|
|
|
{
|
|
|
|
_S_app = 1L << 0,
|
|
|
|
_S_ate = 1L << 1,
|
|
|
|
_S_bin = 1L << 2,
|
|
|
|
_S_in = 1L << 3,
|
|
|
|
_S_out = 1L << 4,
|
|
|
|
_S_trunc = 1L << 5,
|
|
|
|
_S_ios_openmode_end = 1L << 16
|
|
|
|
};
|
2000-10-05 13:27:02 +02:00
|
|
|
|
2004-02-08 05:46:42 +01:00
|
|
|
inline _Ios_Openmode
|
2000-10-05 13:27:02 +02:00
|
|
|
operator&(_Ios_Openmode __a, _Ios_Openmode __b)
|
|
|
|
{ return _Ios_Openmode(static_cast<int>(__a) & static_cast<int>(__b)); }
|
|
|
|
|
2004-02-08 05:46:42 +01:00
|
|
|
inline _Ios_Openmode
|
2000-10-05 13:27:02 +02:00
|
|
|
operator|(_Ios_Openmode __a, _Ios_Openmode __b)
|
|
|
|
{ return _Ios_Openmode(static_cast<int>(__a) | static_cast<int>(__b)); }
|
|
|
|
|
2004-02-08 05:46:42 +01:00
|
|
|
inline _Ios_Openmode
|
2000-10-05 13:27:02 +02:00
|
|
|
operator^(_Ios_Openmode __a, _Ios_Openmode __b)
|
|
|
|
{ return _Ios_Openmode(static_cast<int>(__a) ^ static_cast<int>(__b)); }
|
|
|
|
|
2004-11-02 20:00:19 +01:00
|
|
|
inline _Ios_Openmode&
|
2000-10-05 13:27:02 +02:00
|
|
|
operator|=(_Ios_Openmode& __a, _Ios_Openmode __b)
|
|
|
|
{ return __a = __a | __b; }
|
|
|
|
|
2004-11-02 20:00:19 +01:00
|
|
|
inline _Ios_Openmode&
|
2000-10-05 13:27:02 +02:00
|
|
|
operator&=(_Ios_Openmode& __a, _Ios_Openmode __b)
|
|
|
|
{ return __a = __a & __b; }
|
|
|
|
|
2004-11-02 20:00:19 +01:00
|
|
|
inline _Ios_Openmode&
|
2000-10-05 13:27:02 +02:00
|
|
|
operator^=(_Ios_Openmode& __a, _Ios_Openmode __b)
|
|
|
|
{ return __a = __a ^ __b; }
|
|
|
|
|
2004-02-08 05:46:42 +01:00
|
|
|
inline _Ios_Openmode
|
2000-10-05 13:27:02 +02:00
|
|
|
operator~(_Ios_Openmode __a)
|
|
|
|
{ return _Ios_Openmode(~static_cast<int>(__a)); }
|
|
|
|
|
|
|
|
|
2004-11-02 20:00:19 +01:00
|
|
|
enum _Ios_Iostate
|
|
|
|
{
|
|
|
|
_S_goodbit = 0,
|
|
|
|
_S_badbit = 1L << 0,
|
|
|
|
_S_eofbit = 1L << 1,
|
|
|
|
_S_failbit = 1L << 2,
|
|
|
|
_S_ios_iostate_end = 1L << 16
|
|
|
|
};
|
2000-10-05 13:27:02 +02:00
|
|
|
|
2004-02-08 05:46:42 +01:00
|
|
|
inline _Ios_Iostate
|
2000-10-05 13:27:02 +02:00
|
|
|
operator&(_Ios_Iostate __a, _Ios_Iostate __b)
|
|
|
|
{ return _Ios_Iostate(static_cast<int>(__a) & static_cast<int>(__b)); }
|
|
|
|
|
2004-02-08 05:46:42 +01:00
|
|
|
inline _Ios_Iostate
|
2000-10-05 13:27:02 +02:00
|
|
|
operator|(_Ios_Iostate __a, _Ios_Iostate __b)
|
|
|
|
{ return _Ios_Iostate(static_cast<int>(__a) | static_cast<int>(__b)); }
|
|
|
|
|
2004-02-08 05:46:42 +01:00
|
|
|
inline _Ios_Iostate
|
2000-10-05 13:27:02 +02:00
|
|
|
operator^(_Ios_Iostate __a, _Ios_Iostate __b)
|
|
|
|
{ return _Ios_Iostate(static_cast<int>(__a) ^ static_cast<int>(__b)); }
|
|
|
|
|
2004-11-02 20:00:19 +01:00
|
|
|
inline _Ios_Iostate&
|
2000-10-05 13:27:02 +02:00
|
|
|
operator|=(_Ios_Iostate& __a, _Ios_Iostate __b)
|
|
|
|
{ return __a = __a | __b; }
|
|
|
|
|
2004-11-02 20:00:19 +01:00
|
|
|
inline _Ios_Iostate&
|
2000-10-05 13:27:02 +02:00
|
|
|
operator&=(_Ios_Iostate& __a, _Ios_Iostate __b)
|
|
|
|
{ return __a = __a & __b; }
|
|
|
|
|
2004-11-02 20:00:19 +01:00
|
|
|
inline _Ios_Iostate&
|
2000-10-05 13:27:02 +02:00
|
|
|
operator^=(_Ios_Iostate& __a, _Ios_Iostate __b)
|
|
|
|
{ return __a = __a ^ __b; }
|
|
|
|
|
2004-02-08 05:46:42 +01:00
|
|
|
inline _Ios_Iostate
|
2000-10-05 13:27:02 +02:00
|
|
|
operator~(_Ios_Iostate __a)
|
|
|
|
{ return _Ios_Iostate(~static_cast<int>(__a)); }
|
|
|
|
|
2004-11-02 20:00:19 +01:00
|
|
|
enum _Ios_Seekdir
|
|
|
|
{
|
|
|
|
_S_beg = 0,
|
|
|
|
_S_cur = SEEK_CUR,
|
|
|
|
_S_end = SEEK_END,
|
|
|
|
_S_ios_seekdir_end = 1L << 16
|
|
|
|
};
|
2000-10-05 13:27:02 +02:00
|
|
|
|
|
|
|
// 27.4.2 Class ios_base
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/**
|
|
|
|
* @brief The very top of the I/O class hierarchy.
|
|
|
|
*
|
|
|
|
* This class defines everything that can be defined about I/O that does
|
|
|
|
* not depend on the type of characters being input or output. Most
|
|
|
|
* people will only see @c ios_base when they need to specify the full
|
|
|
|
* name of the various I/O flags (e.g., the openmodes).
|
|
|
|
*/
|
2000-10-05 13:27:02 +02:00
|
|
|
class ios_base
|
|
|
|
{
|
|
|
|
public:
|
2004-02-08 05:46:42 +01:00
|
|
|
|
2000-10-05 13:27:02 +02:00
|
|
|
// 27.4.2.1.1 Class ios_base::failure
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// These are thrown to indicate problems. Doc me.
|
2000-10-05 13:27:02 +02:00
|
|
|
class failure : public exception
|
|
|
|
{
|
|
|
|
public:
|
2003-10-12 12:12:09 +02:00
|
|
|
// _GLIBCXX_RESOLVE_LIB_DEFECTS
|
|
|
|
// 48. Use of non-existent exception constructor
|
2004-02-08 05:46:42 +01:00
|
|
|
explicit
|
2001-01-17 08:44:57 +01:00
|
|
|
failure(const string& __str) throw();
|
2000-10-05 13:27:02 +02:00
|
|
|
|
2002-04-01 20:39:37 +02:00
|
|
|
// This declaration is not useless:
|
|
|
|
// http://gcc.gnu.org/onlinedocs/gcc-3.0.2/gcc_6.html#SEC118
|
2004-02-08 05:46:42 +01:00
|
|
|
virtual
|
2001-01-17 08:44:57 +01:00
|
|
|
~failure() throw();
|
2000-10-05 13:27:02 +02:00
|
|
|
|
2000-11-23 05:53:40 +01:00
|
|
|
virtual const char*
|
|
|
|
what() const throw();
|
2004-02-08 05:46:42 +01:00
|
|
|
|
2000-10-05 13:27:02 +02:00
|
|
|
private:
|
2003-10-09 18:53:54 +02:00
|
|
|
string _M_msg;
|
2000-10-05 13:27:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
// 27.4.2.1.2 Type ios_base::fmtflags
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/**
|
|
|
|
* @brief This is a bitmask type.
|
|
|
|
*
|
|
|
|
* @c "_Ios_Fmtflags" is implementation-defined, but it is valid to
|
|
|
|
* perform bitwise operations on these values and expect the Right
|
|
|
|
* Thing to happen. Defined objects of type fmtflags are:
|
|
|
|
* - boolalpha
|
|
|
|
* - dec
|
|
|
|
* - fixed
|
|
|
|
* - hex
|
|
|
|
* - internal
|
|
|
|
* - left
|
|
|
|
* - oct
|
|
|
|
* - right
|
|
|
|
* - scientific
|
|
|
|
* - showbase
|
|
|
|
* - showpoint
|
|
|
|
* - showpos
|
|
|
|
* - skipws
|
|
|
|
* - unitbuf
|
|
|
|
* - uppercase
|
|
|
|
* - adjustfield
|
|
|
|
* - basefield
|
|
|
|
* - floatfield
|
|
|
|
*/
|
2000-10-05 13:27:02 +02:00
|
|
|
typedef _Ios_Fmtflags fmtflags;
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Insert/extract @c bool in alphabetic rather than numeric format.
|
2000-10-05 13:27:02 +02:00
|
|
|
static const fmtflags boolalpha = fmtflags(__ios_flags::_S_boolalpha);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Converts integer input or generates integer output in decimal base.
|
2000-10-05 13:27:02 +02:00
|
|
|
static const fmtflags dec = fmtflags(__ios_flags::_S_dec);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Generate floating-point output in fixed-point notation.
|
2000-10-05 13:27:02 +02:00
|
|
|
static const fmtflags fixed = fmtflags(__ios_flags::_S_fixed);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Converts integer input or generates integer output in hexadecimal base.
|
2000-10-05 13:27:02 +02:00
|
|
|
static const fmtflags hex = fmtflags(__ios_flags::_S_hex);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Adds fill characters at a designated internal point in certain
|
|
|
|
/// generated output, or identical to @c right if no such point is
|
|
|
|
/// designated.
|
2000-10-05 13:27:02 +02:00
|
|
|
static const fmtflags internal = fmtflags(__ios_flags::_S_internal);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Adds fill characters on the right (final positions) of certain
|
|
|
|
/// generated output. (I.e., the thing you print is flush left.)
|
2000-10-05 13:27:02 +02:00
|
|
|
static const fmtflags left = fmtflags(__ios_flags::_S_left);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Converts integer input or generates integer output in octal base.
|
2000-10-05 13:27:02 +02:00
|
|
|
static const fmtflags oct = fmtflags(__ios_flags::_S_oct);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Adds fill characters on the left (initial positions) of certain
|
|
|
|
/// generated output. (I.e., the thing you print is flush right.)
|
2000-10-05 13:27:02 +02:00
|
|
|
static const fmtflags right = fmtflags(__ios_flags::_S_right);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Generates floating-point output in scientific notation.
|
2000-10-05 13:27:02 +02:00
|
|
|
static const fmtflags scientific = fmtflags(__ios_flags::_S_scientific);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Generates a prefix indicating the numeric base of generated integer
|
|
|
|
/// output.
|
2000-10-05 13:27:02 +02:00
|
|
|
static const fmtflags showbase = fmtflags(__ios_flags::_S_showbase);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Generates a decimal-point character unconditionally in generated
|
|
|
|
/// floating-point output.
|
2000-10-05 13:27:02 +02:00
|
|
|
static const fmtflags showpoint = fmtflags(__ios_flags::_S_showpoint);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Generates a + sign in non-negative generated numeric output.
|
2000-10-05 13:27:02 +02:00
|
|
|
static const fmtflags showpos = fmtflags(__ios_flags::_S_showpos);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Skips leading white space before certain input operations.
|
2000-10-05 13:27:02 +02:00
|
|
|
static const fmtflags skipws = fmtflags(__ios_flags::_S_skipws);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Flushes output after each output operation.
|
2000-10-05 13:27:02 +02:00
|
|
|
static const fmtflags unitbuf = fmtflags(__ios_flags::_S_unitbuf);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Replaces certain lowercase letters with their uppercase equivalents
|
|
|
|
/// in generated output.
|
2000-10-05 13:27:02 +02:00
|
|
|
static const fmtflags uppercase = fmtflags(__ios_flags::_S_uppercase);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// A mask of left|right|internal. Useful for the 2-arg form of @c setf.
|
2000-10-05 13:27:02 +02:00
|
|
|
static const fmtflags adjustfield = fmtflags(__ios_flags::_S_adjustfield);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// A mask of dec|oct|hex. Useful for the 2-arg form of @c setf.
|
2000-10-05 13:27:02 +02:00
|
|
|
static const fmtflags basefield = fmtflags(__ios_flags::_S_basefield);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// A mask of scientific|fixed. Useful for the 2-arg form of @c setf.
|
2000-10-05 13:27:02 +02:00
|
|
|
static const fmtflags floatfield = fmtflags(__ios_flags::_S_floatfield);
|
|
|
|
|
|
|
|
// 27.4.2.1.3 Type ios_base::iostate
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/**
|
|
|
|
* @brief This is a bitmask type.
|
|
|
|
*
|
|
|
|
* @c "_Ios_Iostate" is implementation-defined, but it is valid to
|
|
|
|
* perform bitwise operations on these values and expect the Right
|
|
|
|
* Thing to happen. Defined objects of type iostate are:
|
|
|
|
* - badbit
|
|
|
|
* - eofbit
|
|
|
|
* - failbit
|
|
|
|
* - goodbit
|
|
|
|
*/
|
2000-10-05 13:27:02 +02:00
|
|
|
typedef _Ios_Iostate iostate;
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Indicates a loss of integrity in an input or output sequence (such
|
|
|
|
/// as an irrecoverable read error from a file).
|
2004-02-08 05:46:42 +01:00
|
|
|
static const iostate badbit = iostate(__ios_flags::_S_badbit);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Indicates that an input operation reached the end of an input sequence.
|
2004-02-08 05:46:42 +01:00
|
|
|
static const iostate eofbit = iostate(__ios_flags::_S_eofbit);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Indicates that an input operation failed to read the expected
|
|
|
|
/// characters, or that an output operation failed to generate the
|
|
|
|
/// desired characters.
|
2004-02-08 05:46:42 +01:00
|
|
|
static const iostate failbit = iostate(__ios_flags::_S_failbit);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Indicates all is well.
|
2004-02-08 05:46:42 +01:00
|
|
|
static const iostate goodbit = iostate(0);
|
2000-10-05 13:27:02 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
// 27.4.2.1.4 Type ios_base::openmode
|
|
|
|
/**
|
|
|
|
* @brief This is a bitmask type.
|
|
|
|
*
|
|
|
|
* @c "_Ios_Openmode" is implementation-defined, but it is valid to
|
|
|
|
* perform bitwise operations on these values and expect the Right
|
|
|
|
* Thing to happen. Defined objects of type openmode are:
|
|
|
|
* - app
|
|
|
|
* - ate
|
|
|
|
* - binary
|
|
|
|
* - in
|
|
|
|
* - out
|
|
|
|
* - trunc
|
|
|
|
*/
|
2000-10-05 13:27:02 +02:00
|
|
|
typedef _Ios_Openmode openmode;
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Seek to end before each write.
|
2004-02-08 05:46:42 +01:00
|
|
|
static const openmode app = openmode(__ios_flags::_S_app);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Open and seek to end immediately after opening.
|
2004-02-08 05:46:42 +01:00
|
|
|
static const openmode ate = openmode(__ios_flags::_S_ate);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Perform input and output in binary mode (as opposed to text mode).
|
|
|
|
/// This is probably not what you think it is; see
|
|
|
|
/// http://gcc.gnu.org/onlinedocs/libstdc++/27_io/howto.html#3 and
|
|
|
|
/// http://gcc.gnu.org/onlinedocs/libstdc++/27_io/howto.html#7 for more.
|
2004-02-08 05:46:42 +01:00
|
|
|
static const openmode binary = openmode(__ios_flags::_S_bin);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Open for input. Default for @c ifstream and fstream.
|
2004-02-08 05:46:42 +01:00
|
|
|
static const openmode in = openmode(__ios_flags::_S_in);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Open for output. Default for @c ofstream and fstream.
|
2004-02-08 05:46:42 +01:00
|
|
|
static const openmode out = openmode(__ios_flags::_S_out);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Open for input. Default for @c ofstream.
|
2004-02-08 05:46:42 +01:00
|
|
|
static const openmode trunc = openmode(__ios_flags::_S_trunc);
|
2000-10-05 13:27:02 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
// 27.4.2.1.5 Type ios_base::seekdir
|
|
|
|
/**
|
|
|
|
* @brief This is an enumerated type.
|
|
|
|
*
|
|
|
|
* @c "_Ios_Seekdir" is implementation-defined. Defined values
|
|
|
|
* of type seekdir are:
|
|
|
|
* - beg
|
|
|
|
* - cur, equivalent to @c SEEK_CUR in the C standard library.
|
|
|
|
* - end, equivalent to @c SEEK_END in the C standard library.
|
|
|
|
*/
|
2000-10-05 13:27:02 +02:00
|
|
|
typedef _Ios_Seekdir seekdir;
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Request a seek relative to the beginning of the stream.
|
2004-02-08 05:46:42 +01:00
|
|
|
static const seekdir beg = seekdir(0);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Request a seek relative to the current position within the sequence.
|
2004-02-08 05:46:42 +01:00
|
|
|
static const seekdir cur = seekdir(SEEK_CUR);
|
2003-06-27 09:25:38 +02:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Request a seek relative to the current end of the sequence.
|
2004-02-08 05:46:42 +01:00
|
|
|
static const seekdir end = seekdir(SEEK_END);
|
2000-10-05 13:27:02 +02:00
|
|
|
|
2002-06-16 13:29:53 +02:00
|
|
|
// Annex D.6
|
2000-10-05 13:27:02 +02:00
|
|
|
typedef int io_state;
|
|
|
|
typedef int open_mode;
|
|
|
|
typedef int seek_dir;
|
2004-02-08 05:46:42 +01:00
|
|
|
|
2002-07-25 01:17:13 +02:00
|
|
|
typedef std::streampos streampos;
|
|
|
|
typedef std::streamoff streamoff;
|
2000-10-05 13:27:02 +02:00
|
|
|
|
|
|
|
// Callbacks;
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/**
|
2003-07-11 16:25:09 +02:00
|
|
|
* @brief The set of events that may be passed to an event callback.
|
|
|
|
*
|
|
|
|
* erase_event is used during ~ios() and copyfmt(). imbue_event is used
|
|
|
|
* during imbue(). copyfmt_event is used during copyfmt().
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
*/
|
2000-10-05 13:27:02 +02:00
|
|
|
enum event
|
|
|
|
{
|
|
|
|
erase_event,
|
|
|
|
imbue_event,
|
|
|
|
copyfmt_event
|
|
|
|
};
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/**
|
2003-07-11 16:25:09 +02:00
|
|
|
* @brief The type of an event callback function.
|
|
|
|
* @param event One of the members of the event enum.
|
|
|
|
* @param ios_base Reference to the ios_base object.
|
|
|
|
* @param int The integer provided when the callback was registered.
|
|
|
|
*
|
|
|
|
* Event callbacks are user defined functions that get called during
|
|
|
|
* several ios_base and basic_ios functions, specifically imbue(),
|
|
|
|
* copyfmt(), and ~ios().
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
*/
|
2000-10-05 13:27:02 +02:00
|
|
|
typedef void (*event_callback) (event, ios_base&, int);
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/**
|
2003-07-11 16:25:09 +02:00
|
|
|
* @brief Add the callback __fn with parameter __index.
|
|
|
|
* @param __fn The function to add.
|
|
|
|
* @param __index The integer to pass to the function when invoked.
|
|
|
|
*
|
|
|
|
* Registers a function as an event callback with an integer parameter to
|
|
|
|
* be passed to the function when invoked. Multiple copies of the
|
|
|
|
* function are allowed. If there are multiple callbacks, they are
|
|
|
|
* invoked in the order they were registered.
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
*/
|
2004-02-08 05:46:42 +01:00
|
|
|
void
|
2000-10-05 13:27:02 +02:00
|
|
|
register_callback(event_callback __fn, int __index);
|
|
|
|
|
|
|
|
protected:
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
* @if maint
|
|
|
|
* ios_base data members (doc me)
|
|
|
|
* @endif
|
|
|
|
*/
|
2004-02-08 05:46:42 +01:00
|
|
|
streamsize _M_precision;
|
|
|
|
streamsize _M_width;
|
|
|
|
fmtflags _M_flags;
|
|
|
|
iostate _M_exception;
|
|
|
|
iostate _M_streambuf_state;
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
//@}
|
2000-10-05 13:27:02 +02:00
|
|
|
|
2000-12-14 08:20:37 +01:00
|
|
|
// 27.4.2.6 Members for callbacks
|
2000-10-05 13:27:02 +02:00
|
|
|
// 27.4.2.6 ios_base callbacks
|
|
|
|
struct _Callback_list
|
|
|
|
{
|
|
|
|
// Data Members
|
2004-02-08 05:46:42 +01:00
|
|
|
_Callback_list* _M_next;
|
|
|
|
ios_base::event_callback _M_fn;
|
|
|
|
int _M_index;
|
2002-01-24 22:14:41 +01:00
|
|
|
_Atomic_word _M_refcount; // 0 means one reference.
|
2004-02-08 05:46:42 +01:00
|
|
|
|
|
|
|
_Callback_list(ios_base::event_callback __fn, int __index,
|
2000-10-05 13:27:02 +02:00
|
|
|
_Callback_list* __cb)
|
|
|
|
: _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { }
|
2004-02-08 05:46:42 +01:00
|
|
|
|
|
|
|
void
|
2004-02-27 01:49:50 +01:00
|
|
|
_M_add_reference() { __gnu_cxx::__atomic_add(&_M_refcount, 1); }
|
2002-01-24 22:14:41 +01:00
|
|
|
|
2002-04-01 20:39:37 +02:00
|
|
|
// 0 => OK to delete.
|
2004-02-08 05:46:42 +01:00
|
|
|
int
|
2004-02-27 01:49:50 +01:00
|
|
|
_M_remove_reference()
|
|
|
|
{ return __gnu_cxx::__exchange_and_add(&_M_refcount, -1); }
|
2000-10-05 13:27:02 +02:00
|
|
|
};
|
|
|
|
|
2004-02-08 05:46:42 +01:00
|
|
|
_Callback_list* _M_callbacks;
|
2000-10-05 13:27:02 +02:00
|
|
|
|
2004-02-08 05:46:42 +01:00
|
|
|
void
|
2000-10-05 13:27:02 +02:00
|
|
|
_M_call_callbacks(event __ev) throw();
|
|
|
|
|
2004-02-08 05:46:42 +01:00
|
|
|
void
|
2000-10-05 13:27:02 +02:00
|
|
|
_M_dispose_callbacks(void);
|
|
|
|
|
2000-12-14 08:20:37 +01:00
|
|
|
// 27.4.2.5 Members for iword/pword storage
|
2004-02-08 05:46:42 +01:00
|
|
|
struct _Words
|
|
|
|
{
|
|
|
|
void* _M_pword;
|
|
|
|
long _M_iword;
|
2002-04-01 20:39:37 +02:00
|
|
|
_Words() : _M_pword(0), _M_iword(0) { }
|
2000-10-05 13:27:02 +02:00
|
|
|
};
|
|
|
|
|
2002-04-01 20:39:37 +02:00
|
|
|
// Only for failed iword/pword calls.
|
2004-02-08 05:46:42 +01:00
|
|
|
_Words _M_word_zero;
|
2002-04-01 20:39:37 +02:00
|
|
|
|
|
|
|
// Guaranteed storage.
|
2003-02-06 06:58:10 +01:00
|
|
|
// The first 5 iword and pword slots are reserved for internal use.
|
2004-02-08 05:46:42 +01:00
|
|
|
static const int _S_local_word_size = 8;
|
|
|
|
_Words _M_local_word[_S_local_word_size];
|
2002-04-01 20:39:37 +02:00
|
|
|
|
|
|
|
// Allocated storage.
|
2004-02-08 05:46:42 +01:00
|
|
|
int _M_word_size;
|
|
|
|
_Words* _M_word;
|
|
|
|
|
|
|
|
_Words&
|
2004-01-27 16:45:43 +01:00
|
|
|
_M_grow_words(int __index, bool __iword);
|
2000-10-05 13:27:02 +02:00
|
|
|
|
|
|
|
// Members for locale and locale caching.
|
2004-02-08 05:46:42 +01:00
|
|
|
locale _M_ios_locale;
|
2000-10-05 13:27:02 +02:00
|
|
|
|
2004-02-08 05:46:42 +01:00
|
|
|
void
|
2000-10-05 13:27:02 +02:00
|
|
|
_M_init();
|
|
|
|
|
|
|
|
public:
|
2000-12-14 08:20:37 +01:00
|
|
|
|
2000-10-05 13:27:02 +02:00
|
|
|
// 27.4.2.1.6 Class ios_base::Init
|
|
|
|
// Used to initialize standard streams. In theory, g++ could use
|
|
|
|
// -finit-priority to order this stuff correctly without going
|
2004-02-08 05:46:42 +01:00
|
|
|
// through these machinations.
|
|
|
|
class Init
|
2000-10-05 13:27:02 +02:00
|
|
|
{
|
|
|
|
friend class ios_base;
|
|
|
|
public:
|
|
|
|
Init();
|
|
|
|
~Init();
|
2004-02-08 05:46:42 +01:00
|
|
|
|
2000-10-05 13:27:02 +02:00
|
|
|
private:
|
2003-12-15 20:03:13 +01:00
|
|
|
static _Atomic_word _S_refcount;
|
|
|
|
static bool _S_synced_with_stdio;
|
2000-10-05 13:27:02 +02:00
|
|
|
};
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
// [27.4.2.2] fmtflags state functions
|
|
|
|
/**
|
|
|
|
* @brief Access to format flags.
|
|
|
|
* @return The format control flags for both input and output.
|
|
|
|
*/
|
2004-02-08 05:46:42 +01:00
|
|
|
inline fmtflags
|
2000-10-05 13:27:02 +02:00
|
|
|
flags() const { return _M_flags; }
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/**
|
|
|
|
* @brief Setting new format flags all at once.
|
|
|
|
* @param fmtfl The new flags to set.
|
|
|
|
* @return The previous format control flags.
|
|
|
|
*
|
|
|
|
* This function overwrites all the format flags with @a fmtfl.
|
|
|
|
*/
|
2004-02-08 05:46:42 +01:00
|
|
|
inline fmtflags
|
2000-10-05 13:27:02 +02:00
|
|
|
flags(fmtflags __fmtfl)
|
2004-02-08 05:46:42 +01:00
|
|
|
{
|
|
|
|
fmtflags __old = _M_flags;
|
|
|
|
_M_flags = __fmtfl;
|
|
|
|
return __old;
|
2000-10-05 13:27:02 +02:00
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/**
|
|
|
|
* @brief Setting new format flags.
|
|
|
|
* @param fmtfl Additional flags to set.
|
|
|
|
* @return The previous format control flags.
|
|
|
|
*
|
|
|
|
* This function sets additional flags in format control. Flags that
|
|
|
|
* were previously set remain set.
|
|
|
|
*/
|
2004-02-08 05:46:42 +01:00
|
|
|
inline fmtflags
|
2000-10-05 13:27:02 +02:00
|
|
|
setf(fmtflags __fmtfl)
|
2004-02-08 05:46:42 +01:00
|
|
|
{
|
|
|
|
fmtflags __old = _M_flags;
|
|
|
|
_M_flags |= __fmtfl;
|
|
|
|
return __old;
|
2000-10-05 13:27:02 +02:00
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/**
|
|
|
|
* @brief Setting new format flags.
|
|
|
|
* @param fmtfl Additional flags to set.
|
|
|
|
* @param mask The flags mask for @a fmtfl.
|
|
|
|
* @return The previous format control flags.
|
|
|
|
*
|
|
|
|
* This function clears @a mask in the format flags, then sets
|
|
|
|
* @a fmtfl @c & @a mask. An example mask is @c ios_base::adjustfield.
|
|
|
|
*/
|
2004-02-08 05:46:42 +01:00
|
|
|
inline fmtflags
|
2000-10-05 13:27:02 +02:00
|
|
|
setf(fmtflags __fmtfl, fmtflags __mask)
|
|
|
|
{
|
|
|
|
fmtflags __old = _M_flags;
|
|
|
|
_M_flags &= ~__mask;
|
|
|
|
_M_flags |= (__fmtfl & __mask);
|
|
|
|
return __old;
|
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/**
|
|
|
|
* @brief Clearing format flags.
|
|
|
|
* @param mask The flags to unset.
|
|
|
|
*
|
|
|
|
* This function clears @a mask in the format flags.
|
|
|
|
*/
|
2004-02-08 05:46:42 +01:00
|
|
|
inline void
|
2000-10-05 13:27:02 +02:00
|
|
|
unsetf(fmtflags __mask) { _M_flags &= ~__mask; }
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/**
|
|
|
|
* @brief Flags access.
|
|
|
|
* @return The precision to generate on certain output operations.
|
|
|
|
*
|
|
|
|
* @if maint
|
|
|
|
* Be careful if you try to give a definition of "precision" here; see
|
|
|
|
* DR 189.
|
|
|
|
* @endif
|
|
|
|
*/
|
2004-02-08 05:46:42 +01:00
|
|
|
inline streamsize
|
2000-10-05 13:27:02 +02:00
|
|
|
precision() const { return _M_precision; }
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/**
|
|
|
|
* @brief Changing flags.
|
|
|
|
* @param prec The new precision value.
|
|
|
|
* @return The previous value of precision().
|
|
|
|
*/
|
2004-02-08 05:46:42 +01:00
|
|
|
inline streamsize
|
2000-10-05 13:27:02 +02:00
|
|
|
precision(streamsize __prec)
|
2004-02-08 05:46:42 +01:00
|
|
|
{
|
|
|
|
streamsize __old = _M_precision;
|
|
|
|
_M_precision = __prec;
|
|
|
|
return __old;
|
2000-10-05 13:27:02 +02:00
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/**
|
|
|
|
* @brief Flags access.
|
|
|
|
* @return The minimum field width to generate on output operations.
|
|
|
|
*
|
|
|
|
* "Minimum field width" refers to the number of characters.
|
|
|
|
*/
|
2004-02-08 05:46:42 +01:00
|
|
|
inline streamsize
|
2000-10-05 13:27:02 +02:00
|
|
|
width() const { return _M_width; }
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/**
|
|
|
|
* @brief Changing flags.
|
|
|
|
* @param wide The new width value.
|
|
|
|
* @return The previous value of width().
|
|
|
|
*/
|
2004-02-08 05:46:42 +01:00
|
|
|
inline streamsize
|
2000-10-05 13:27:02 +02:00
|
|
|
width(streamsize __wide)
|
2004-02-08 05:46:42 +01:00
|
|
|
{
|
|
|
|
streamsize __old = _M_width;
|
|
|
|
_M_width = __wide;
|
|
|
|
return __old;
|
2000-10-05 13:27:02 +02:00
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
// [27.4.2.4] ios_base static members
|
|
|
|
/**
|
|
|
|
* @brief Interaction with the standard C I/O objects.
|
|
|
|
* @param sync Whether to synchronize or not.
|
|
|
|
* @return True if the standard streams were previously synchronized.
|
|
|
|
*
|
|
|
|
* The synchronization referred to is @e only that between the standard
|
|
|
|
* C facilities (e.g., stdout) and the standard C++ objects (e.g.,
|
|
|
|
* cout). User-declared streams are unaffected. See
|
|
|
|
* http://gcc.gnu.org/onlinedocs/libstdc++/27_io/howto.html#8 for more.
|
|
|
|
*/
|
2004-02-08 05:46:42 +01:00
|
|
|
static bool
|
2000-10-05 13:27:02 +02:00
|
|
|
sync_with_stdio(bool __sync = true);
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
// [27.4.2.3] ios_base locale functions
|
|
|
|
/**
|
|
|
|
* @brief Setting a new locale.
|
|
|
|
* @param loc The new locale.
|
|
|
|
* @return The previous locale.
|
|
|
|
*
|
2003-07-11 16:25:09 +02:00
|
|
|
* Sets the new locale for this stream, and then invokes each callback
|
|
|
|
* with imbue_event.
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
*/
|
2004-02-08 05:46:42 +01:00
|
|
|
locale
|
2000-10-05 13:27:02 +02:00
|
|
|
imbue(const locale& __loc);
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/**
|
|
|
|
* @brief Locale access
|
2003-06-27 09:25:38 +02:00
|
|
|
* @return A copy of the current locale.
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
*
|
|
|
|
* If @c imbue(loc) has previously been called, then this function
|
|
|
|
* returns @c loc. Otherwise, it returns a copy of @c std::locale(),
|
|
|
|
* the global C++ locale.
|
|
|
|
*/
|
2004-02-08 05:46:42 +01:00
|
|
|
inline locale
|
2000-10-05 13:27:02 +02:00
|
|
|
getloc() const { return _M_ios_locale; }
|
|
|
|
|
2003-06-27 09:25:38 +02:00
|
|
|
/**
|
|
|
|
* @brief Locale access
|
|
|
|
* @return A reference to the current locale.
|
|
|
|
*
|
|
|
|
* Like getloc above, but returns a reference instead of
|
|
|
|
* generating a copy.
|
|
|
|
*/
|
2004-02-08 05:46:42 +01:00
|
|
|
inline const locale&
|
2003-06-27 09:25:38 +02:00
|
|
|
_M_getloc() const { return _M_ios_locale; }
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
// [27.4.2.5] ios_base storage functions
|
|
|
|
/**
|
2003-07-11 16:25:09 +02:00
|
|
|
* @brief Access to unique indices.
|
|
|
|
* @return An integer different from all previous calls.
|
|
|
|
*
|
|
|
|
* This function returns a unique integer every time it is called. It
|
|
|
|
* can be used for any purpose, but is primarily intended to be a unique
|
|
|
|
* index for the iword and pword functions. The expectation is that an
|
|
|
|
* application calls xalloc in order to obtain an index in the iword and
|
|
|
|
* pword arrays that can be used without fear of conflict.
|
|
|
|
*
|
|
|
|
* The implementation maintains a static variable that is incremented and
|
|
|
|
* returned on each invocation. xalloc is guaranteed to return an index
|
|
|
|
* that is safe to use in the iword and pword arrays.
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
*/
|
2004-02-08 05:46:42 +01:00
|
|
|
static int
|
2000-10-05 13:27:02 +02:00
|
|
|
xalloc() throw();
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/**
|
2003-07-11 16:25:09 +02:00
|
|
|
* @brief Access to integer array.
|
|
|
|
* @param __ix Index into the array.
|
|
|
|
* @return A reference to an integer associated with the index.
|
|
|
|
*
|
|
|
|
* The iword function provides access to an array of integers that can be
|
|
|
|
* used for any purpose. The array grows as required to hold the
|
|
|
|
* supplied index. All integers in the array are initialized to 0.
|
|
|
|
*
|
|
|
|
* The implementation reserves several indices. You should use xalloc to
|
|
|
|
* obtain an index that is safe to use. Also note that since the array
|
|
|
|
* can grow dynamically, it is not safe to hold onto the reference.
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
*/
|
2004-02-08 05:46:42 +01:00
|
|
|
inline long&
|
2000-10-05 13:27:02 +02:00
|
|
|
iword(int __ix)
|
|
|
|
{
|
2004-02-08 05:46:42 +01:00
|
|
|
_Words& __word = (__ix < _M_word_size)
|
2004-01-27 16:45:43 +01:00
|
|
|
? _M_word[__ix] : _M_grow_words(__ix, true);
|
2000-10-05 13:27:02 +02:00
|
|
|
return __word._M_iword;
|
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/**
|
2003-07-11 16:25:09 +02:00
|
|
|
* @brief Access to void pointer array.
|
|
|
|
* @param __ix Index into the array.
|
|
|
|
* @return A reference to a void* associated with the index.
|
|
|
|
*
|
|
|
|
* The pword function provides access to an array of pointers that can be
|
|
|
|
* used for any purpose. The array grows as required to hold the
|
|
|
|
* supplied index. All pointers in the array are initialized to 0.
|
|
|
|
*
|
|
|
|
* The implementation reserves several indices. You should use xalloc to
|
|
|
|
* obtain an index that is safe to use. Also note that since the array
|
|
|
|
* can grow dynamically, it is not safe to hold onto the reference.
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
*/
|
2004-02-08 05:46:42 +01:00
|
|
|
inline void*&
|
2000-10-05 13:27:02 +02:00
|
|
|
pword(int __ix)
|
|
|
|
{
|
2004-02-08 05:46:42 +01:00
|
|
|
_Words& __word = (__ix < _M_word_size)
|
2004-01-27 16:45:43 +01:00
|
|
|
? _M_word[__ix] : _M_grow_words(__ix, false);
|
2000-10-05 13:27:02 +02:00
|
|
|
return __word._M_pword;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Destructor
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/**
|
2003-07-11 16:25:09 +02:00
|
|
|
* Invokes each callback with erase_event. Destroys local storage.
|
|
|
|
*
|
|
|
|
* Note that the ios_base object for the standard streams never gets
|
|
|
|
* destroyed. As a result, any callbacks registered with the standard
|
|
|
|
* streams will not get invoked with erase_event (unless copyfmt is
|
|
|
|
* used).
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
*/
|
2002-11-05 17:49:42 +01:00
|
|
|
virtual ~ios_base();
|
2000-10-05 13:27:02 +02:00
|
|
|
|
|
|
|
protected:
|
|
|
|
ios_base();
|
|
|
|
|
2003-10-12 12:12:09 +02:00
|
|
|
// _GLIBCXX_RESOLVE_LIB_DEFECTS
|
|
|
|
// 50. Copy constructor and assignment operator of ios_base
|
2000-10-05 13:27:02 +02:00
|
|
|
private:
|
|
|
|
ios_base(const ios_base&);
|
|
|
|
|
2004-02-08 05:46:42 +01:00
|
|
|
ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
operator=(const ios_base&);
|
|
|
|
};
|
2004-02-08 05:46:42 +01:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
// [27.4.5.1] fmtflags manipulators
|
|
|
|
/// Calls base.setf(ios_base::boolalpha).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
boolalpha(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.setf(ios_base::boolalpha);
|
|
|
|
return __base;
|
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Calls base.unsetf(ios_base::boolalpha).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
noboolalpha(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.unsetf(ios_base::boolalpha);
|
|
|
|
return __base;
|
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Calls base.setf(ios_base::showbase).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
showbase(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.setf(ios_base::showbase);
|
|
|
|
return __base;
|
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Calls base.unsetf(ios_base::showbase).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
noshowbase(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.unsetf(ios_base::showbase);
|
|
|
|
return __base;
|
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Calls base.setf(ios_base::showpoint).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
showpoint(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.setf(ios_base::showpoint);
|
|
|
|
return __base;
|
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Calls base.unsetf(ios_base::showpoint).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
noshowpoint(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.unsetf(ios_base::showpoint);
|
|
|
|
return __base;
|
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Calls base.setf(ios_base::showpos).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
showpos(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.setf(ios_base::showpos);
|
|
|
|
return __base;
|
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Calls base.unsetf(ios_base::showpos).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
noshowpos(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.unsetf(ios_base::showpos);
|
|
|
|
return __base;
|
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Calls base.setf(ios_base::skipws).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
skipws(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.setf(ios_base::skipws);
|
|
|
|
return __base;
|
|
|
|
}
|
2004-02-08 05:46:42 +01:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Calls base.unsetf(ios_base::skipws).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
noskipws(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.unsetf(ios_base::skipws);
|
|
|
|
return __base;
|
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Calls base.setf(ios_base::uppercase).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
uppercase(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.setf(ios_base::uppercase);
|
|
|
|
return __base;
|
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Calls base.unsetf(ios_base::uppercase).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
nouppercase(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.unsetf(ios_base::uppercase);
|
|
|
|
return __base;
|
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Calls base.setf(ios_base::unitbuf).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
unitbuf(ios_base& __base)
|
|
|
|
{
|
2004-02-08 05:46:42 +01:00
|
|
|
__base.setf(ios_base::unitbuf);
|
2000-10-05 13:27:02 +02:00
|
|
|
return __base;
|
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Calls base.unsetf(ios_base::unitbuf).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
nounitbuf(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.unsetf(ios_base::unitbuf);
|
2004-02-08 05:46:42 +01:00
|
|
|
return __base;
|
2000-10-05 13:27:02 +02:00
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
// [27.4.5.2] adjustfield anipulators
|
|
|
|
/// Calls base.setf(ios_base::internal, ios_base::adjustfield).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
internal(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.setf(ios_base::internal, ios_base::adjustfield);
|
2004-02-08 05:46:42 +01:00
|
|
|
return __base;
|
2000-10-05 13:27:02 +02:00
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Calls base.setf(ios_base::left, ios_base::adjustfield).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
left(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.setf(ios_base::left, ios_base::adjustfield);
|
|
|
|
return __base;
|
|
|
|
}
|
2004-02-08 05:46:42 +01:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Calls base.setf(ios_base::right, ios_base::adjustfield).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
right(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.setf(ios_base::right, ios_base::adjustfield);
|
|
|
|
return __base;
|
|
|
|
}
|
2004-02-08 05:46:42 +01:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
// [27.4.5.3] basefield anipulators
|
|
|
|
/// Calls base.setf(ios_base::dec, ios_base::basefield).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
dec(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.setf(ios_base::dec, ios_base::basefield);
|
|
|
|
return __base;
|
|
|
|
}
|
2004-02-08 05:46:42 +01:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Calls base.setf(ios_base::hex, ios_base::basefield).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
hex(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.setf(ios_base::hex, ios_base::basefield);
|
|
|
|
return __base;
|
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Calls base.setf(ios_base::oct, ios_base::basefield).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
oct(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.setf(ios_base::oct, ios_base::basefield);
|
|
|
|
return __base;
|
|
|
|
}
|
2004-02-08 05:46:42 +01:00
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
// [27.4.5.4] floatfield anipulators
|
|
|
|
/// Calls base.setf(ios_base::fixed, ios_base::floatfield).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
fixed(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.setf(ios_base::fixed, ios_base::floatfield);
|
|
|
|
return __base;
|
|
|
|
}
|
|
|
|
|
TODO: Note change in clause 27 docs.
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
From-SVN: r59325
2002-11-21 08:06:41 +01:00
|
|
|
/// Calls base.setf(ios_base::scientific, ios_base::floatfield).
|
2004-02-08 05:46:42 +01:00
|
|
|
inline ios_base&
|
2000-10-05 13:27:02 +02:00
|
|
|
scientific(ios_base& __base)
|
|
|
|
{
|
|
|
|
__base.setf(ios_base::scientific, ios_base::floatfield);
|
|
|
|
return __base;
|
|
|
|
}
|
|
|
|
} // namespace std
|
|
|
|
|
2003-07-05 06:05:45 +02:00
|
|
|
#endif /* _IOS_BASE_H */
|
2000-10-05 13:27:02 +02:00
|
|
|
|