2000-10-05 13:27:02 +02:00
|
|
|
// Iostreams base classes -*- C++ -*-
|
|
|
|
|
2007-03-11 13:03:34 +01:00
|
|
|
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
|
2010-02-04 19:20:34 +01:00
|
|
|
// 2006, 2007, 2008, 2009, 2010
|
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
|
2009-04-09 17:00:19 +02:00
|
|
|
// Free Software Foundation; either version 3, or (at your option)
|
2000-10-05 13:27:02 +02:00
|
|
|
// 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.
|
|
|
|
|
2009-04-09 17:00:19 +02:00
|
|
|
// Under Section 7 of GPL version 3, you are granted additional
|
|
|
|
// permissions described in the GCC Runtime Library Exception, version
|
|
|
|
// 3.1, as published by the Free Software Foundation.
|
|
|
|
|
|
|
|
// You should have received a copy of the GNU General Public License and
|
|
|
|
// a copy of the GCC Runtime Library Exception along with this program;
|
|
|
|
// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|
|
|
// <http://www.gnu.org/licenses/>.
|
2000-10-05 13:27:02 +02:00
|
|
|
|
2010-12-19 10:21:16 +01:00
|
|
|
/** @file bits/ios_base.h
|
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
|
|
|
* This is an internal header file, included by other library headers.
|
2010-12-19 10:21:16 +01:00
|
|
|
* Do not attempt to use it directly. @headername{ios}
|
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
|
|
|
*/
|
|
|
|
|
2006-12-06 00:24:07 +01:00
|
|
|
//
|
|
|
|
// ISO C++ 14882: 27.4 Iostreams base classes
|
|
|
|
//
|
|
|
|
|
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
|
|
|
|
|
2006-09-14 11:48:15 +02:00
|
|
|
#include <ext/atomicity.h>
|
2003-01-22 17:51:52 +01:00
|
|
|
#include <bits/localefwd.h>
|
|
|
|
#include <bits/locale_classes.h>
|
2008-08-07 01:17:05 +02:00
|
|
|
|
PR libstdc++/36104 part four
2011-01-30 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/36104 part four
* include/bits/c++config (_GLIBCXX_STD): Remove.
(_GLIBCXX_STD_D, _GLIBCXX_PR): Now _GLIBCXX_STD_C.
(_GLIBCXX_P): Now _GLIBCXX_STD_A.
(_GLIBCXX_NAMESPACE_DEBUG, _GLIBCXX_NAMESPACE_PARALLEL,
_GLIBCXX_NAMESPACE_PROFILE, _GLIBCXX_NAMESPACE_VERSION): Remove.
(_GLIBCXX_INLINE_DEBUG, _GLIBCXX_INLINE_PARALLEL,
_GLIBCXX_INLINE_PROFILE): Remove.
(_GLIBCXX_BEGIN_NAMESPACE(X)): Remove.
(_GLIBCXX_END_NAMESPACE): Remove.
(_GLIBCXX_BEGIN_NESTED_NAMESPACE(X, Y)): Remove.
(_GLIBCXX_END_NESTED_NAMESPACE): Remove.
(_GLIBCXX_BEGIN_NAMESPACE_ALGO): Add.
(_GLIBCXX_END_NAMESPACE_ALGO): Add.
(_GLIBCXX_BEGIN_NAMESPACE_CONTAINER): Add.
(_GLIBCXX_END_NAMESPACE_CONTAINER): Add.
(_GLIBCXX_BEGIN_NAMESPACE_VERSION): Add.
(_GLIBCXX_END_NAMESPACE_VERSION): Add.
(_GLIBCXX_BEGIN_LDBL_NAMESPACE): To _GLIBCXX_BEGIN_NAMESPACE_LDBL.
(_GLIBCXX_END_LDBL_NAMESPACE): To _GLIBCXX_END_NAMESPACE_LDBL.
(_GLIBCXX_VISIBILITY_ATTR): Revert to _GLIBCXX_VISIBILITY.
* include/*: Use new macros for namespace scope.
* config/*: Same.
* src/*: Same.
* src/Makefile.am (sources): Remove debug_list.cc, add
compatibility-debug_list-2.cc.
(parallel_sources): Remove parallel_list.cc, add
compatibility-parallel_list-2.cc.
(compatibility-parallel_list-2.[o,lo]): New rule.
* src/Makefile.in: Regenerate.
* src/debug_list.cc: Remove.
* src/parallel_list.cc: Remove.
* src/compatibility-list-2.cc: New.
* src/compatibility-debug_list-2.cc: New.
* src/compatibility-parallel_list-2.cc: New.
* doc/doxygen/user.cfg.in: Adjust macros.
* testsuite/20_util/auto_ptr/assign_neg.cc: Adjust line numbers, macros.
* testsuite/20_util/declval/requirements/1_neg.cc: Same.
* testsuite/20_util/duration/requirements/typedefs_neg1.cc: Same.
* testsuite/20_util/duration/requirements/typedefs_neg2.cc: Same.
* testsuite/20_util/duration/requirements/typedefs_neg3.cc: Same.
* testsuite/20_util/forward/c_neg.cc: Same.
* testsuite/20_util/forward/f_neg.cc: Same.
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Same.
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Same.
* testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Same.
* testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Same.
* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Same.
* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Same.
* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Same.
* testsuite/23_containers/deque/requirements/dr438/
constructor_1_neg.cc: Same.
* testsuite/23_containers/deque/requirements/dr438/
constructor_2_neg.cc: Same.
* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: Same.
* testsuite/23_containers/forward_list/capacity/1.cc: Same.
* testsuite/23_containers/forward_list/requirements/dr438/
assign_neg.cc: Same.
* testsuite/23_containers/forward_list/requirements/dr438/
constructor_1_neg.cc: Same.
* testsuite/23_containers/forward_list/requirements/dr438/
constructor_2_neg.cc: Same.
* testsuite/23_containers/forward_list/requirements/dr438/
insert_neg.cc: Same.
* testsuite/23_containers/list/capacity/29134.cc: Same.
* testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Same.
* testsuite/23_containers/list/requirements/dr438/
constructor_1_neg.cc: Same.
* testsuite/23_containers/list/requirements/dr438/
constructor_2_neg.cc: Same.
* testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Same.
* testsuite/23_containers/vector/bool/capacity/29134.cc: Same.
* testsuite/23_containers/vector/bool/modifiers/insert/31370.cc: Same.
* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Same.
* testsuite/23_containers/vector/requirements/dr438/
constructor_1_neg.cc: Same.
* testsuite/23_containers/vector/requirements/dr438/
constructor_2_neg.cc: Same.
* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Same.
* testsuite/25_algorithms/sort/35588.cc: Same.
* testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
* testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
* testsuite/ext/profile/mutex_extensions_neg.cc: Same.
* testsuite/ext/profile/profiler_algos.cc: Same.
* testsuite/ext/type_traits/add_unsigned_floating_neg.cc: Same.
* testsuite/ext/type_traits/add_unsigned_integer_neg.cc: Same.
* testsuite/ext/type_traits/remove_unsigned_floating_neg.cc: Same.
* testsuite/ext/type_traits/remove_unsigned_integer_neg.cc: Same.
* testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Same.
From-SVN: r169421
2011-01-30 23:39:36 +01:00
|
|
|
namespace std _GLIBCXX_VISIBILITY(default)
|
|
|
|
{
|
|
|
|
_GLIBCXX_BEGIN_NAMESPACE_VERSION
|
2005-12-19 01:56:05 +01:00
|
|
|
|
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
|
|
|
|
2010-11-02 03:35:28 +01:00
|
|
|
inline _GLIBCXX_CONSTEXPR _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)); }
|
|
|
|
|
2010-11-02 03:35:28 +01:00
|
|
|
inline _GLIBCXX_CONSTEXPR _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)); }
|
|
|
|
|
2010-11-02 03:35:28 +01:00
|
|
|
inline _GLIBCXX_CONSTEXPR _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)); }
|
|
|
|
|
2010-11-02 03:35:28 +01:00
|
|
|
inline _GLIBCXX_CONSTEXPR _Ios_Fmtflags
|
|
|
|
operator~(_Ios_Fmtflags __a)
|
|
|
|
{ return _Ios_Fmtflags(~static_cast<int>(__a)); }
|
|
|
|
|
|
|
|
inline const _Ios_Fmtflags&
|
2000-10-05 13:27:02 +02:00
|
|
|
operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
|
|
|
|
{ return __a = __a | __b; }
|
|
|
|
|
2010-11-02 03:35:28 +01:00
|
|
|
inline const _Ios_Fmtflags&
|
2000-10-05 13:27:02 +02:00
|
|
|
operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
|
|
|
|
{ return __a = __a & __b; }
|
|
|
|
|
2010-11-02 03:35:28 +01:00
|
|
|
inline const _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
|
|
|
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
|
|
|
|
2010-11-02 03:35:28 +01:00
|
|
|
inline _GLIBCXX_CONSTEXPR _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)); }
|
|
|
|
|
2010-11-02 03:35:28 +01:00
|
|
|
inline _GLIBCXX_CONSTEXPR _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)); }
|
|
|
|
|
2010-11-02 03:35:28 +01:00
|
|
|
inline _GLIBCXX_CONSTEXPR _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)); }
|
|
|
|
|
2010-11-02 03:35:28 +01:00
|
|
|
inline _GLIBCXX_CONSTEXPR _Ios_Openmode
|
|
|
|
operator~(_Ios_Openmode __a)
|
|
|
|
{ return _Ios_Openmode(~static_cast<int>(__a)); }
|
|
|
|
|
|
|
|
inline const _Ios_Openmode&
|
2000-10-05 13:27:02 +02:00
|
|
|
operator|=(_Ios_Openmode& __a, _Ios_Openmode __b)
|
|
|
|
{ return __a = __a | __b; }
|
|
|
|
|
2010-11-02 03:35:28 +01:00
|
|
|
inline const _Ios_Openmode&
|
2000-10-05 13:27:02 +02:00
|
|
|
operator&=(_Ios_Openmode& __a, _Ios_Openmode __b)
|
|
|
|
{ return __a = __a & __b; }
|
|
|
|
|
2010-11-02 03:35:28 +01:00
|
|
|
inline const _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
|
|
|
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
|
|
|
|
2010-11-02 03:35:28 +01:00
|
|
|
inline _GLIBCXX_CONSTEXPR _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)); }
|
|
|
|
|
2010-11-02 03:35:28 +01:00
|
|
|
inline _GLIBCXX_CONSTEXPR _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)); }
|
|
|
|
|
2010-11-02 03:35:28 +01:00
|
|
|
inline _GLIBCXX_CONSTEXPR _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)); }
|
|
|
|
|
2010-11-02 03:35:28 +01:00
|
|
|
inline _GLIBCXX_CONSTEXPR _Ios_Iostate
|
|
|
|
operator~(_Ios_Iostate __a)
|
|
|
|
{ return _Ios_Iostate(~static_cast<int>(__a)); }
|
|
|
|
|
|
|
|
inline const _Ios_Iostate&
|
2000-10-05 13:27:02 +02:00
|
|
|
operator|=(_Ios_Iostate& __a, _Ios_Iostate __b)
|
|
|
|
{ return __a = __a | __b; }
|
|
|
|
|
2010-11-02 03:35:28 +01:00
|
|
|
inline const _Ios_Iostate&
|
2000-10-05 13:27:02 +02:00
|
|
|
operator&=(_Ios_Iostate& __a, _Ios_Iostate __b)
|
|
|
|
{ return __a = __a & __b; }
|
|
|
|
|
2010-11-02 03:35:28 +01:00
|
|
|
inline const _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
|
|
|
enum _Ios_Seekdir
|
|
|
|
{
|
|
|
|
_S_beg = 0,
|
2010-07-27 12:36:50 +02:00
|
|
|
_S_cur = _GLIBCXX_STDIO_SEEK_CUR,
|
|
|
|
_S_end = _GLIBCXX_STDIO_SEEK_END,
|
2004-11-02 20:00:19 +01:00
|
|
|
_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
|
|
|
/**
|
locale_facets.h (isspace, [...]): Add doxygen markup.
2004-11-22 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.h (isspace, isprint, isupper,
islower, isalpha, isdigit, ispunct, isxdigit, isalnum, isgraph,
toupper, tolower): Add doxygen markup.
(codecvt_byname, ctype_byname, numpunct_byname, collate_byname,
time_get_byname, time_put_byname, moneypunct_byname,
messages_byname): Same.
* include/std/std_fstream.h: Remove superfluous markup.
* include/std/std_sstream.h: Same.
* include/std/std_streambuf.h: Same.
* include/ext/enc_filebuf.h: Adjust markup.
* include/ext/stdio_filebuf.h: Same.
* include/ext/stdio_sync_filebuf.h: Same.
* include/bits/codecvt.h: Same.
* config/os/gnu-linux/ctype_base.h: Same.
* config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
* include/tr1/array: Add markup.
* include/tr1/tuple: Same.
* docs/doxygen/run_doxygen: Print arguments.
* docs/doxygen/user.cfg.in: Tweaks.
From-SVN: r91080
2004-11-23 10:18:41 +01:00
|
|
|
* @brief The base of the I/O class hierarchy.
|
2009-02-21 01:45:21 +01:00
|
|
|
* @ingroup io
|
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
|
|
|
*
|
|
|
|
* 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
|
|
|
|
2009-02-21 01:45:21 +01:00
|
|
|
/**
|
|
|
|
* @brief These are thrown to indicate problems with io.
|
|
|
|
* @ingroup exceptions
|
|
|
|
*
|
|
|
|
* 27.4.2.1.1 Class ios_base::failure
|
|
|
|
*/
|
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:
|
2008-12-02 05:55:54 +01:00
|
|
|
// http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/Vague-Linkage.html
|
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.
|
|
|
|
*
|
2010-02-04 19:20:34 +01:00
|
|
|
* @c @a _Ios_Fmtflags is implementation-defined, but it is valid to
|
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 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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const fmtflags boolalpha = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const fmtflags dec = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const fmtflags fixed = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const fmtflags hex = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const fmtflags internal = _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.)
|
2006-03-06 19:06:47 +01:00
|
|
|
static const fmtflags left = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const fmtflags oct = _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.)
|
2006-03-06 19:06:47 +01:00
|
|
|
static const fmtflags right = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const fmtflags scientific = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const fmtflags showbase = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const fmtflags showpoint = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const fmtflags showpos = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const fmtflags skipws = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const fmtflags unitbuf = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const fmtflags uppercase = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const fmtflags adjustfield = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const fmtflags basefield = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const fmtflags floatfield = _S_floatfield;
|
2000-10-05 13:27:02 +02:00
|
|
|
|
|
|
|
// 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.
|
|
|
|
*
|
2010-02-04 19:20:34 +01:00
|
|
|
* @c @a _Ios_Iostate is implementation-defined, but it is valid to
|
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 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).
|
2006-03-06 19:06:47 +01:00
|
|
|
static const iostate badbit = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const iostate eofbit = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const iostate failbit = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const iostate goodbit = _S_goodbit;
|
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.
|
|
|
|
*
|
2010-02-04 19:20:34 +01:00
|
|
|
* @c @a _Ios_Openmode is implementation-defined, but it is valid to
|
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 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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const openmode app = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const openmode ate = _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
|
2008-12-02 05:55:54 +01:00
|
|
|
/// http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt11ch27s02.html
|
2006-03-06 19:06:47 +01:00
|
|
|
static const openmode binary = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const openmode in = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const openmode out = _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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const openmode trunc = _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.
|
|
|
|
*
|
2010-02-04 19:20:34 +01:00
|
|
|
* @c @a _Ios_Seekdir is implementation-defined. Defined values
|
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
|
|
|
* 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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const seekdir beg = _S_beg;
|
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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const seekdir cur = _S_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.
|
2006-03-06 19:06:47 +01:00
|
|
|
static const seekdir end = _S_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.
|
2011-08-07 09:27:06 +02:00
|
|
|
* @param __e One of the members of the event enum.
|
|
|
|
* @param __b Reference to the ios_base object.
|
|
|
|
* @param __i The integer provided when the callback was registered.
|
2003-07-11 16:25:09 +02:00
|
|
|
*
|
|
|
|
* 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
|
|
|
*/
|
2011-08-07 09:27:06 +02:00
|
|
|
typedef void (*event_callback) (event __e, ios_base& __b, int __i);
|
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
|
|
|
/**
|
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:
|
2004-02-08 05:46:42 +01:00
|
|
|
streamsize _M_precision;
|
|
|
|
streamsize _M_width;
|
|
|
|
fmtflags _M_flags;
|
|
|
|
iostate _M_exception;
|
|
|
|
iostate _M_streambuf_state;
|
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
|
2006-05-24 18:37:42 +02:00
|
|
|
_M_add_reference() { __gnu_cxx::__atomic_add_dispatch(&_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()
|
2010-08-13 00:56:59 +02:00
|
|
|
{
|
|
|
|
// Be race-detector-friendly. For more info see bits/c++config.
|
2010-08-13 13:48:34 +02:00
|
|
|
_GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_refcount);
|
2010-08-13 00:56:59 +02:00
|
|
|
int __res = __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1);
|
|
|
|
if (__res == 0)
|
|
|
|
{
|
2010-08-13 13:48:34 +02:00
|
|
|
_GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_M_refcount);
|
2010-08-13 00:56:59 +02:00
|
|
|
}
|
|
|
|
return __res;
|
|
|
|
}
|
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
|
condition_variable.cc (condition_variable, [...]): Mark throw()
* src/condition_variable.cc (condition_variable,
condition_variable_any constructors): Mark throw()
* src/hash.cc (operator() for long double, string, and wstring): Mark
throw ().
* src/strstream.cc (strstreambuf constructors, freeze, str, pcount,
_M_setup, rdbuf, str): Mark throw ().
* src/chrono.cc (new): Mark throw ().
* include/std/system_error (system_category, generic_category): Mark
throw () and const.
* include/std/chrono (now): Mark throw ().
* include/std/condition_variable (condition_variable,
~condition_variable, condition_variable_any,
~condition_variable_any): Mark throw ().
* include/std/mutex (mutex): Mark throw ().
* include/bits/stl_list.h (swap, transfer, reverse, hook, unhook): Mark
throw.
* include/bits/functional_hash.h (operator() on size_t): Mark pure and throw ().
* include/bits/locale_facets.tcc (__verify_grouping): Mark pure.
* include/bits/locale_classes.h (_S_initialize_once,
_S_clone_c_locale): Mark throw ().
(_S_get_c_name): Mark const and throw ().
(_M_id, _M_compare, _M_transform, _M_compare, _M_transform): Mark throw ().
* include/bits/locale_facets.h (__convert_to_v explicit instances):
Mark throw ().
(_M_convert_to_wmask, _M_initialize_ctype, _S_format_float): Mark throw ().
* include/bits/ios_base.h (_M_dispose_callbacks, _M_init, imbue,
ios_base): Mark throw ()
* include/bits/locale_facets_nonio.h (_M_put): Mark throw.
* include/backward/strstream (strstreambuf constructors): Mark throw ().
(str, freeze, _M_setupf): Mark throw ().
(pcount): Mark pure and throw ().
(rdbuf): Mark const and throw ().
From-SVN: r146328
2009-04-18 23:19:18 +02:00
|
|
|
_M_dispose_callbacks(void) throw();
|
2000-10-05 13:27:02 +02:00
|
|
|
|
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.
|
2006-03-06 19:06:47 +01:00
|
|
|
enum { _S_local_word_size = 8 };
|
2004-02-08 05:46:42 +01:00
|
|
|
_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
|
2010-02-17 06:43:24 +01:00
|
|
|
_M_init() throw();
|
2000-10-05 13:27:02 +02:00
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
2007-04-25 11:25:05 +02:00
|
|
|
fmtflags
|
|
|
|
flags() const
|
|
|
|
{ return _M_flags; }
|
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 all at once.
|
2011-08-07 09:27:06 +02:00
|
|
|
* @param __fmtfl The new flags to set.
|
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
|
|
|
* @return The previous format control flags.
|
|
|
|
*
|
2011-08-07 09:27:06 +02:00
|
|
|
* This function overwrites all the format flags with @a __fmtfl.
|
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
|
|
|
*/
|
2007-04-25 11:25:05 +02:00
|
|
|
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.
|
2011-08-07 09:27:06 +02:00
|
|
|
* @param __fmtfl Additional flags to set.
|
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
|
|
|
* @return The previous format control flags.
|
|
|
|
*
|
|
|
|
* This function sets additional flags in format control. Flags that
|
|
|
|
* were previously set remain set.
|
|
|
|
*/
|
2007-04-25 11:25:05 +02:00
|
|
|
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.
|
2011-08-07 09:27:06 +02:00
|
|
|
* @param __fmtfl Additional flags to set.
|
|
|
|
* @param __mask The flags mask for @a fmtfl.
|
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
|
|
|
* @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.
|
|
|
|
*/
|
2007-04-25 11:25:05 +02:00
|
|
|
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.
|
2011-08-07 09:27:06 +02:00
|
|
|
* @param __mask The flags to unset.
|
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
|
|
|
*
|
2011-08-07 09:27:06 +02:00
|
|
|
* This function clears @a __mask in the format 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
|
|
|
*/
|
2007-04-25 11:25:05 +02:00
|
|
|
void
|
|
|
|
unsetf(fmtflags __mask)
|
|
|
|
{ _M_flags &= ~__mask; }
|
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 precision to generate on certain output operations.
|
|
|
|
*
|
2010-02-04 19:20:34 +01:00
|
|
|
* Be careful if you try to give a definition of @a precision here; see
|
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
|
|
|
* DR 189.
|
|
|
|
*/
|
2007-04-25 11:25:05 +02:00
|
|
|
streamsize
|
|
|
|
precision() const
|
|
|
|
{ return _M_precision; }
|
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 Changing flags.
|
2011-08-07 09:27:06 +02:00
|
|
|
* @param __prec The new precision value.
|
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
|
|
|
* @return The previous value of precision().
|
|
|
|
*/
|
2007-04-25 11:25:05 +02:00
|
|
|
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.
|
|
|
|
*
|
2010-02-04 19:20:34 +01:00
|
|
|
* <em>Minimum field width</em> refers to the number of characters.
|
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
|
|
|
*/
|
2007-04-25 11:25:05 +02:00
|
|
|
streamsize
|
|
|
|
width() const
|
|
|
|
{ return _M_width; }
|
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 Changing flags.
|
2011-08-07 09:27:06 +02:00
|
|
|
* @param __wide The new width value.
|
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
|
|
|
* @return The previous value of width().
|
|
|
|
*/
|
2007-04-25 11:25:05 +02:00
|
|
|
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.
|
2011-08-07 09:27:06 +02:00
|
|
|
* @param __sync Whether to synchronize or not.
|
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
|
|
|
* @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
|
2008-12-02 05:55:54 +01:00
|
|
|
* http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt11ch28s02.html
|
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 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.
|
2011-08-07 09:27:06 +02:00
|
|
|
* @param __loc The new 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
|
|
|
* @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
|
2010-02-17 06:43:24 +01:00
|
|
|
imbue(const locale& __loc) throw();
|
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 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.
|
|
|
|
*/
|
2007-04-25 11:25:05 +02:00
|
|
|
locale
|
|
|
|
getloc() const
|
|
|
|
{ return _M_ios_locale; }
|
2000-10-05 13:27:02 +02:00
|
|
|
|
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.
|
|
|
|
*/
|
2007-04-25 11:25:05 +02:00
|
|
|
const locale&
|
|
|
|
_M_getloc() const
|
|
|
|
{ return _M_ios_locale; }
|
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
|
|
|
// [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
|
|
|
*/
|
2007-04-25 11:25:05 +02:00
|
|
|
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
|
|
|
*/
|
2007-04-25 11:25:05 +02:00
|
|
|
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:
|
condition_variable.cc (condition_variable, [...]): Mark throw()
* src/condition_variable.cc (condition_variable,
condition_variable_any constructors): Mark throw()
* src/hash.cc (operator() for long double, string, and wstring): Mark
throw ().
* src/strstream.cc (strstreambuf constructors, freeze, str, pcount,
_M_setup, rdbuf, str): Mark throw ().
* src/chrono.cc (new): Mark throw ().
* include/std/system_error (system_category, generic_category): Mark
throw () and const.
* include/std/chrono (now): Mark throw ().
* include/std/condition_variable (condition_variable,
~condition_variable, condition_variable_any,
~condition_variable_any): Mark throw ().
* include/std/mutex (mutex): Mark throw ().
* include/bits/stl_list.h (swap, transfer, reverse, hook, unhook): Mark
throw.
* include/bits/functional_hash.h (operator() on size_t): Mark pure and throw ().
* include/bits/locale_facets.tcc (__verify_grouping): Mark pure.
* include/bits/locale_classes.h (_S_initialize_once,
_S_clone_c_locale): Mark throw ().
(_S_get_c_name): Mark const and throw ().
(_M_id, _M_compare, _M_transform, _M_compare, _M_transform): Mark throw ().
* include/bits/locale_facets.h (__convert_to_v explicit instances):
Mark throw ().
(_M_convert_to_wmask, _M_initialize_ctype, _S_format_float): Mark throw ().
* include/bits/ios_base.h (_M_dispose_callbacks, _M_init, imbue,
ios_base): Mark throw ()
* include/bits/locale_facets_nonio.h (_M_put): Mark throw.
* include/backward/strstream (strstreambuf constructors): Mark throw ().
(str, freeze, _M_setupf): Mark throw ().
(pcount): Mark pure and throw ().
(rdbuf): Mark const and throw ().
From-SVN: r146328
2009-04-18 23:19:18 +02:00
|
|
|
ios_base() throw ();
|
2000-10-05 13:27:02 +02:00
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2008-01-31 19:44:55 +01:00
|
|
|
// [27.4.5.2] adjustfield manipulators
|
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::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
|
|
|
|
2008-01-31 19:44:55 +01:00
|
|
|
// [27.4.5.3] basefield manipulators
|
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::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
|
|
|
|
2008-01-31 19:44:55 +01:00
|
|
|
// [27.4.5.4] floatfield manipulators
|
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::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;
|
|
|
|
}
|
2005-12-19 01:56:05 +01:00
|
|
|
|
PR libstdc++/36104 part four
2011-01-30 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/36104 part four
* include/bits/c++config (_GLIBCXX_STD): Remove.
(_GLIBCXX_STD_D, _GLIBCXX_PR): Now _GLIBCXX_STD_C.
(_GLIBCXX_P): Now _GLIBCXX_STD_A.
(_GLIBCXX_NAMESPACE_DEBUG, _GLIBCXX_NAMESPACE_PARALLEL,
_GLIBCXX_NAMESPACE_PROFILE, _GLIBCXX_NAMESPACE_VERSION): Remove.
(_GLIBCXX_INLINE_DEBUG, _GLIBCXX_INLINE_PARALLEL,
_GLIBCXX_INLINE_PROFILE): Remove.
(_GLIBCXX_BEGIN_NAMESPACE(X)): Remove.
(_GLIBCXX_END_NAMESPACE): Remove.
(_GLIBCXX_BEGIN_NESTED_NAMESPACE(X, Y)): Remove.
(_GLIBCXX_END_NESTED_NAMESPACE): Remove.
(_GLIBCXX_BEGIN_NAMESPACE_ALGO): Add.
(_GLIBCXX_END_NAMESPACE_ALGO): Add.
(_GLIBCXX_BEGIN_NAMESPACE_CONTAINER): Add.
(_GLIBCXX_END_NAMESPACE_CONTAINER): Add.
(_GLIBCXX_BEGIN_NAMESPACE_VERSION): Add.
(_GLIBCXX_END_NAMESPACE_VERSION): Add.
(_GLIBCXX_BEGIN_LDBL_NAMESPACE): To _GLIBCXX_BEGIN_NAMESPACE_LDBL.
(_GLIBCXX_END_LDBL_NAMESPACE): To _GLIBCXX_END_NAMESPACE_LDBL.
(_GLIBCXX_VISIBILITY_ATTR): Revert to _GLIBCXX_VISIBILITY.
* include/*: Use new macros for namespace scope.
* config/*: Same.
* src/*: Same.
* src/Makefile.am (sources): Remove debug_list.cc, add
compatibility-debug_list-2.cc.
(parallel_sources): Remove parallel_list.cc, add
compatibility-parallel_list-2.cc.
(compatibility-parallel_list-2.[o,lo]): New rule.
* src/Makefile.in: Regenerate.
* src/debug_list.cc: Remove.
* src/parallel_list.cc: Remove.
* src/compatibility-list-2.cc: New.
* src/compatibility-debug_list-2.cc: New.
* src/compatibility-parallel_list-2.cc: New.
* doc/doxygen/user.cfg.in: Adjust macros.
* testsuite/20_util/auto_ptr/assign_neg.cc: Adjust line numbers, macros.
* testsuite/20_util/declval/requirements/1_neg.cc: Same.
* testsuite/20_util/duration/requirements/typedefs_neg1.cc: Same.
* testsuite/20_util/duration/requirements/typedefs_neg2.cc: Same.
* testsuite/20_util/duration/requirements/typedefs_neg3.cc: Same.
* testsuite/20_util/forward/c_neg.cc: Same.
* testsuite/20_util/forward/f_neg.cc: Same.
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Same.
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Same.
* testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Same.
* testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Same.
* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Same.
* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Same.
* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Same.
* testsuite/23_containers/deque/requirements/dr438/
constructor_1_neg.cc: Same.
* testsuite/23_containers/deque/requirements/dr438/
constructor_2_neg.cc: Same.
* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: Same.
* testsuite/23_containers/forward_list/capacity/1.cc: Same.
* testsuite/23_containers/forward_list/requirements/dr438/
assign_neg.cc: Same.
* testsuite/23_containers/forward_list/requirements/dr438/
constructor_1_neg.cc: Same.
* testsuite/23_containers/forward_list/requirements/dr438/
constructor_2_neg.cc: Same.
* testsuite/23_containers/forward_list/requirements/dr438/
insert_neg.cc: Same.
* testsuite/23_containers/list/capacity/29134.cc: Same.
* testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Same.
* testsuite/23_containers/list/requirements/dr438/
constructor_1_neg.cc: Same.
* testsuite/23_containers/list/requirements/dr438/
constructor_2_neg.cc: Same.
* testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Same.
* testsuite/23_containers/vector/bool/capacity/29134.cc: Same.
* testsuite/23_containers/vector/bool/modifiers/insert/31370.cc: Same.
* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Same.
* testsuite/23_containers/vector/requirements/dr438/
constructor_1_neg.cc: Same.
* testsuite/23_containers/vector/requirements/dr438/
constructor_2_neg.cc: Same.
* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Same.
* testsuite/25_algorithms/sort/35588.cc: Same.
* testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
* testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
* testsuite/ext/profile/mutex_extensions_neg.cc: Same.
* testsuite/ext/profile/profiler_algos.cc: Same.
* testsuite/ext/type_traits/add_unsigned_floating_neg.cc: Same.
* testsuite/ext/type_traits/add_unsigned_integer_neg.cc: Same.
* testsuite/ext/type_traits/remove_unsigned_floating_neg.cc: Same.
* testsuite/ext/type_traits/remove_unsigned_integer_neg.cc: Same.
* testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Same.
From-SVN: r169421
2011-01-30 23:39:36 +01:00
|
|
|
_GLIBCXX_END_NAMESPACE_VERSION
|
|
|
|
} // namespace
|
2000-10-05 13:27:02 +02:00
|
|
|
|
2003-07-05 06:05:45 +02:00
|
|
|
#endif /* _IOS_BASE_H */
|