auto_ptr.h: Fix comment typos.

2008-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
    
	* include/backward/auto_ptr.h: Fix comment typos.
	* include/bits/algorithmfwd.h: Likewise.
	* include/bits/basic_ios.h: Likewise.
	* include/bits/c++config: Likewise.
	* include/bits/char_traits.h: Likewise.
	* include/bits/codecvt.h: Likewise.
	* include/bits/gslice.h: Likewise.
	* include/bits/ios_base.h: Likewise.
	* include/bits/locale_facets.h: Likewise.
	* include/bits/locale_facets_nonio.tcc: Likewise.
	* include/bits/postypes.h: Likewise.
	* include/bits/sstream.tcc: Likewise.
	* include/bits/stl_algo.h: Likewise.
	* include/bits/stl_deque.h: Likewise.
	* include/bits/stl_iterator.h: Likewise.
	* include/bits/stl_iterator_base_types.h Likewise.
	* include/bits/stl_list.h: Likewise.
	* include/bits/stl_map.h: Likewise.
	* include/bits/stl_multimap.h: Likewise.
	* include/bits/stl_multiset.h: Likewise.
	* include/bits/stl_set.h: Likewise.
	* include/bits/stl_vector.h: Likewise.
	* include/bits/valarray_array.h: Likewise.
	* include/debug/safe_base.h: Likewise.
	* include/ext/bitmap_allocator.h: Likewise.
	* include/ext/codecvt_specializations.h Likewise.
	* include/ext/mt_allocator.h: Likewise.
	* include/ext/rc_string_base.h: Likewise.
	* include/ext/rope: Likewise.
	* include/parallel/checkers.h: Likewise.
	* include/parallel/find.h: Likewise.
	* include/parallel/multiseq_selection.h: Likewise.
	* include/parallel/partition.h: Likewise.
	* include/parallel/settings.h: Likewise.
	* include/std/bitset: Likewise.
	* include/std/complex: Likewise.
	* include/std/fstream: Likewise.
	* include/std/istream: Likewise.
	* include/std/limits: Likewise.
	* include/std/ostream: Likewise.
	* include/std/stdexcept: Likewise.
	* include/std/streambuf: Likewise.
	* include/tr1/bessel_function.tcc: Likewise.
	* include/tr1/cmath: Likewise.
	* include/tr1/ell_integral.tcc: Likewise.
	* include/tr1/hypergeometric.tcc: Likewise.
	* include/tr1/legendre_function.tcc: Likewise.
	* include/tr1_impl/random: Likewise.
	* include/tr1_impl/regex: Likewise.

From-SVN: r131982
This commit is contained in:
Ralf Wildenhues 2008-01-31 18:44:55 +00:00 committed by Paolo Carlini
parent 89fe7f1bc7
commit 28dac70a08
50 changed files with 226 additions and 174 deletions

View file

@ -1,3 +1,55 @@
2008-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* include/backward/auto_ptr.h: Fix comment typos.
* include/bits/algorithmfwd.h: Likewise.
* include/bits/basic_ios.h: Likewise.
* include/bits/c++config: Likewise.
* include/bits/char_traits.h: Likewise.
* include/bits/codecvt.h: Likewise.
* include/bits/gslice.h: Likewise.
* include/bits/ios_base.h: Likewise.
* include/bits/locale_facets.h: Likewise.
* include/bits/locale_facets_nonio.tcc: Likewise.
* include/bits/postypes.h: Likewise.
* include/bits/sstream.tcc: Likewise.
* include/bits/stl_algo.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_iterator.h: Likewise.
* include/bits/stl_iterator_base_types.h Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_set.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/bits/valarray_array.h: Likewise.
* include/debug/safe_base.h: Likewise.
* include/ext/bitmap_allocator.h: Likewise.
* include/ext/codecvt_specializations.h Likewise.
* include/ext/mt_allocator.h: Likewise.
* include/ext/rc_string_base.h: Likewise.
* include/ext/rope: Likewise.
* include/parallel/checkers.h: Likewise.
* include/parallel/find.h: Likewise.
* include/parallel/multiseq_selection.h: Likewise.
* include/parallel/partition.h: Likewise.
* include/parallel/settings.h: Likewise.
* include/std/bitset: Likewise.
* include/std/complex: Likewise.
* include/std/fstream: Likewise.
* include/std/istream: Likewise.
* include/std/limits: Likewise.
* include/std/ostream: Likewise.
* include/std/stdexcept: Likewise.
* include/std/streambuf: Likewise.
* include/tr1/bessel_function.tcc: Likewise.
* include/tr1/cmath: Likewise.
* include/tr1/ell_integral.tcc: Likewise.
* include/tr1/hypergeometric.tcc: Likewise.
* include/tr1/legendre_function.tcc: Likewise.
* include/tr1_impl/random: Likewise.
* include/tr1_impl/regex: Likewise.
2008-01-31 Paolo Carlini <pcarlini@suse.de> 2008-01-31 Paolo Carlini <pcarlini@suse.de>
* testsuite/27_io/basic_istream/extractors_character/pod/3983-2.cc: * testsuite/27_io/basic_istream/extractors_character/pod/3983-2.cc:

View file

@ -110,7 +110,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* @param a Another %auto_ptr of the same type. * @param a Another %auto_ptr of the same type.
* *
* This object now @e owns the object previously owned by @a a, * This object now @e owns the object previously owned by @a a,
* which has given up ownsership. * which has given up ownership.
*/ */
auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { }
@ -122,7 +122,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* pointer-to-Tp/element_type. * pointer-to-Tp/element_type.
* *
* This object now @e owns the object previously owned by @a a, * This object now @e owns the object previously owned by @a a,
* which has given up ownsership. * which has given up ownership.
*/ */
template<typename _Tp1> template<typename _Tp1>
auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { }
@ -132,7 +132,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* @param a Another %auto_ptr of the same type. * @param a Another %auto_ptr of the same type.
* *
* This object now @e owns the object previously owned by @a a, * This object now @e owns the object previously owned by @a a,
* which has given up ownsership. The object that this one @e * which has given up ownership. The object that this one @e
* used to own and track has been deleted. * used to own and track has been deleted.
*/ */
auto_ptr& auto_ptr&
@ -149,7 +149,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* A pointer-to-Tp1 must be convertible to a pointer-to-Tp/element_type. * A pointer-to-Tp1 must be convertible to a pointer-to-Tp/element_type.
* *
* This object now @e owns the object previously owned by @a a, * This object now @e owns the object previously owned by @a a,
* which has given up ownsership. The object that this one @e * which has given up ownership. The object that this one @e
* used to own and track has been deleted. * used to own and track has been deleted.
*/ */
template<typename _Tp1> template<typename _Tp1>

View file

@ -61,7 +61,7 @@
mismatch mismatch
next_permutation next_permutation
nth_element nth_element
parital_sort partial_sort
partial_sort_copy partial_sort_copy
partition partition
pop_heap pop_heap
@ -82,7 +82,7 @@
rotate_copy rotate_copy
search search
search_n search_n
set_differernce set_difference
set_intersection set_intersection
set_symmetric_difference set_symmetric_difference
set_union set_union

View file

@ -225,7 +225,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* in the error flags, then an exception of type * in the error flags, then an exception of type
* std::ios_base::failure is thrown. * std::ios_base::failure is thrown.
* *
* If the error flage is already set when the exceptions mask is * If the error flag is already set when the exceptions mask is
* added, the exception is immediately thrown. Try running the * added, the exception is immediately thrown. Try running the
* following under GCC 3.1 or later: * following under GCC 3.1 or later:
* @code * @code
@ -355,7 +355,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
copyfmt(const basic_ios& __rhs); copyfmt(const basic_ios& __rhs);
/** /**
* @brief Retreives the "empty" character. * @brief Retrieves the "empty" character.
* @return The current fill character. * @return The current fill character.
* *
* It defaults to a space (' ') in the current locale. * It defaults to a space (' ') in the current locale.

View file

@ -111,7 +111,7 @@
// _GLIBCXX_STD_P // _GLIBCXX_STD_P
// //
// Macros for enclosing namepaces and possibly nested namespaces. // Macros for enclosing namespaces and possibly nested namespaces.
// _GLIBCXX_BEGIN_NAMESPACE // _GLIBCXX_BEGIN_NAMESPACE
// _GLIBCXX_END_NAMESPACE // _GLIBCXX_END_NAMESPACE
// _GLIBCXX_BEGIN_NESTED_NAMESPACE // _GLIBCXX_BEGIN_NESTED_NAMESPACE
@ -167,7 +167,7 @@
# endif # endif
# if __NO_INLINE__ && !__GXX_WEAK__ # if __NO_INLINE__ && !__GXX_WEAK__
# warning currently using namepace associated mode which may fail \ # warning currently using namespace associated mode which may fail \
without inlining due to lack of weak symbols without inlining due to lack of weak symbols
# endif # endif

View file

@ -78,7 +78,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
* right, but the int_type and state_type typedefs, and the eof() * right, but the int_type and state_type typedefs, and the eof()
* member function, are likely to be wrong.) The reason this class * member function, are likely to be wrong.) The reason this class
* exists is so users can specialize it. Classes in namespace std * exists is so users can specialize it. Classes in namespace std
* may not be specialized for fundamentl types, but classes in * may not be specialized for fundamental types, but classes in
* namespace __gnu_cxx may be. * namespace __gnu_cxx may be.
* *
* See http://gcc.gnu.org/onlinedocs/libstdc++/21_strings/howto.html#5 * See http://gcc.gnu.org/onlinedocs/libstdc++/21_strings/howto.html#5

View file

@ -96,7 +96,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* respectively. If the result needed no conversion, from_next and * respectively. If the result needed no conversion, from_next and
* to_next are not affected. * to_next are not affected.
* *
* The @a state argument should be intialized if the input is at the * The @a state argument should be initialized if the input is at the
* beginning and carried from a previous call if continuing * beginning and carried from a previous call if continuing
* conversion. There are no guarantees about how @a state is used. * conversion. There are no guarantees about how @a state is used.
* *
@ -176,7 +176,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* respectively. If the result needed no conversion, from_next and * respectively. If the result needed no conversion, from_next and
* to_next are not affected. * to_next are not affected.
* *
* The @a state argument should be intialized if the input is at the * The @a state argument should be initialized if the input is at the
* beginning and carried from a previous call if continuing * beginning and carried from a previous call if continuing
* conversion. There are no guarantees about how @a state is used. * conversion. There are no guarantees about how @a state is used.
* *

View file

@ -79,7 +79,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
gslice(size_t, const valarray<size_t>&, const valarray<size_t>&); gslice(size_t, const valarray<size_t>&, const valarray<size_t>&);
// XXX: the IS says the copy-ctor and copy-assignment operators are // XXX: the IS says the copy-ctor and copy-assignment operators are
// synthetized by the compiler but they are just unsuitable // synthesized by the compiler but they are just unsuitable
// for a ref-counted semantic // for a ref-counted semantic
/// Copy constructor. /// Copy constructor.
gslice(const gslice&); gslice(const gslice&);

View file

@ -899,7 +899,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
return __base; return __base;
} }
// [27.4.5.2] adjustfield anipulators // [27.4.5.2] adjustfield manipulators
/// Calls base.setf(ios_base::internal, ios_base::adjustfield). /// Calls base.setf(ios_base::internal, ios_base::adjustfield).
inline ios_base& inline ios_base&
internal(ios_base& __base) internal(ios_base& __base)
@ -924,7 +924,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
return __base; return __base;
} }
// [27.4.5.3] basefield anipulators // [27.4.5.3] basefield manipulators
/// Calls base.setf(ios_base::dec, ios_base::basefield). /// Calls base.setf(ios_base::dec, ios_base::basefield).
inline ios_base& inline ios_base&
dec(ios_base& __base) dec(ios_base& __base)
@ -949,7 +949,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
return __base; return __base;
} }
// [27.4.5.4] floatfield anipulators // [27.4.5.4] floatfield manipulators
/// Calls base.setf(ios_base::fixed, ios_base::floatfield). /// Calls base.setf(ios_base::fixed, ios_base::floatfield).
inline ios_base& inline ios_base&
fixed(ios_base& __base) fixed(ios_base& __base)

View file

@ -143,7 +143,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* This template class provides implementations of the public functions * This template class provides implementations of the public functions
* that forward to the protected virtual functions. * that forward to the protected virtual functions.
* *
* This template also provides abtract stubs for the protected virtual * This template also provides abstract stubs for the protected virtual
* functions. * functions.
*/ */
template<typename _CharT> template<typename _CharT>
@ -2021,7 +2021,7 @@ _GLIBCXX_BEGIN_LDBL_NAMESPACE
* specifier. Otherwise, parses like %d for signed and %u for unsigned * specifier. Otherwise, parses like %d for signed and %u for unsigned
* types. The matching type length modifier is also used. * types. The matching type length modifier is also used.
* *
* Digit grouping is intrepreted according to numpunct::grouping() and * Digit grouping is interpreted according to numpunct::grouping() and
* numpunct::thousands_sep(). If the pattern of digit groups isn't * numpunct::thousands_sep(). If the pattern of digit groups isn't
* consistent, sets err to ios_base::failbit. * consistent, sets err to ios_base::failbit.
* *
@ -2080,7 +2080,7 @@ _GLIBCXX_BEGIN_LDBL_NAMESPACE
* matching type length modifier is also used. * matching type length modifier is also used.
* *
* The decimal point character used is numpunct::decimal_point(). * The decimal point character used is numpunct::decimal_point().
* Digit grouping is intrepreted according to numpunct::grouping() and * Digit grouping is interpreted according to numpunct::grouping() and
* numpunct::thousands_sep(). If the pattern of digit groups isn't * numpunct::thousands_sep(). If the pattern of digit groups isn't
* consistent, sets err to ios_base::failbit. * consistent, sets err to ios_base::failbit.
* *
@ -2119,7 +2119,7 @@ _GLIBCXX_BEGIN_LDBL_NAMESPACE
* *
* The input characters are parsed like the scanf %p specifier. * The input characters are parsed like the scanf %p specifier.
* *
* Digit grouping is intrepreted according to numpunct::grouping() and * Digit grouping is interpreted according to numpunct::grouping() and
* numpunct::thousands_sep(). If the pattern of digit groups isn't * numpunct::thousands_sep(). If the pattern of digit groups isn't
* consistent, sets err to ios_base::failbit. * consistent, sets err to ios_base::failbit.
* *

View file

@ -491,7 +491,7 @@ _GLIBCXX_BEGIN_LDBL_NAMESPACE
break; break;
case money_base::sign: case money_base::sign:
// Sign might not exist, or be more than one // Sign might not exist, or be more than one
// charater long. In that case, add in the rest // character long. In that case, add in the rest
// below. // below.
if (__sign_size) if (__sign_size)
__res += __sign[0]; __res += __sign[0];

View file

@ -54,7 +54,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// The types streamoff, streampos and wstreampos and the class // The types streamoff, streampos and wstreampos and the class
// template fpos<> are described in clauses 21.1.2, 21.1.3, 27.1.2, // template fpos<> are described in clauses 21.1.2, 21.1.3, 27.1.2,
// 27.2, 27.4.1, 27.4.3 and D.6. Despite all this verbage, the // 27.2, 27.4.1, 27.4.3 and D.6. Despite all this verbiage, the
// behaviour of these types is mostly implementation defined or // behaviour of these types is mostly implementation defined or
// unspecified. The behaviour in this implementation is as noted // unspecified. The behaviour in this implementation is as noted
// below. // below.
@ -126,7 +126,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
{ return _M_state; } { return _M_state; }
// The standard requires that this operator must be defined, but // The standard requires that this operator must be defined, but
// gives no semantics. In this implemenation it just adds it's // gives no semantics. In this implementation it just adds its
// argument to the stored offset and returns *this. // argument to the stored offset and returns *this.
/// Add offset to this position. /// Add offset to this position.
fpos& fpos&
@ -137,8 +137,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
} }
// The standard requires that this operator must be defined, but // The standard requires that this operator must be defined, but
// gives no semantics. In this implemenation it just subtracts // gives no semantics. In this implementation it just subtracts
// it's argument from the stored offset and returns *this. // its argument from the stored offset and returns *this.
/// Subtract offset from this position. /// Subtract offset from this position.
fpos& fpos&
operator-=(streamoff __off) operator-=(streamoff __off)
@ -148,7 +148,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
} }
// The standard requires that this operator must be defined, but // The standard requires that this operator must be defined, but
// defines it's semantics only in terms of operator-. In this // defines its semantics only in terms of operator-. In this
// implementation it constructs a copy of *this, adds the // implementation it constructs a copy of *this, adds the
// argument to that copy using operator+= and then returns the // argument to that copy using operator+= and then returns the
// copy. // copy.
@ -162,7 +162,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
} }
// The standard requires that this operator must be defined, but // The standard requires that this operator must be defined, but
// defines it's semantics only in terms of operator+. In this // defines its semantics only in terms of operator+. In this
// implementation it constructs a copy of *this, subtracts the // implementation it constructs a copy of *this, subtracts the
// argument from that copy using operator-= and then returns the // argument from that copy using operator-= and then returns the
// copy. // copy.
@ -176,7 +176,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
} }
// The standard requires that this operator must be defined, but // The standard requires that this operator must be defined, but
// defines it's semantics only in terms of operator+. In this // defines its semantics only in terms of operator+. In this
// implementation it returns the difference between the offset // implementation it returns the difference between the offset
// stored in *this and in the argument. // stored in *this and in the argument.
/// Subtract position to return offset. /// Subtract position to return offset.

View file

@ -105,7 +105,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
{ {
// NB: Start ostringstream buffers at 512 chars. This is an // NB: Start ostringstream buffers at 512 chars. This is an
// experimental value (pronounced "arbitrary" in some of the // experimental value (pronounced "arbitrary" in some of the
// hipper english-speaking countries), and can be changed to // hipper English-speaking countries), and can be changed to
// suit particular needs. // suit particular needs.
// //
// _GLIBCXX_RESOLVE_LIB_DEFECTS // _GLIBCXX_RESOLVE_LIB_DEFECTS

View file

@ -2385,7 +2385,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* @param first An iterator. * @param first An iterator.
* @param last Another iterator. * @param last Another iterator.
* @param val The search term. * @param val The search term.
* @return True if @a val (or its equivelent) is in [@a first,@a last ]. * @return True if @a val (or its equivalent) is in [@a first,@a last ].
* @ingroup binarysearch * @ingroup binarysearch
* *
* Note that this does not actually return an iterator to @a val. For * Note that this does not actually return an iterator to @a val. For
@ -2415,7 +2415,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* @param last Another iterator. * @param last Another iterator.
* @param val The search term. * @param val The search term.
* @param comp A functor to use for comparisons. * @param comp A functor to use for comparisons.
* @return True if @a val (or its equivelent) is in [@a first,@a last ]. * @return True if @a val (or its equivalent) is in [@a first,@a last ].
* @ingroup binarysearch * @ingroup binarysearch
* *
* Note that this does not actually return an iterator to @a val. For * Note that this does not actually return an iterator to @a val. For
@ -3845,7 +3845,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_P)
* @param last2 End of match candidates. * @param last2 End of match candidates.
* @return The first iterator @c i in the range * @return The first iterator @c i in the range
* @p [first1,last1) such that @c *i == @p *(i2) such that i2 is an * @p [first1,last1) such that @c *i == @p *(i2) such that i2 is an
* interator in [first2,last2), or @p last1 if no such iterator exists. * iterator in [first2,last2), or @p last1 if no such iterator exists.
* *
* Searches the range @p [first1,last1) for an element that is equal to * Searches the range @p [first1,last1) for an element that is equal to
* some element in the range [first2,last2). If found, returns an iterator * some element in the range [first2,last2). If found, returns an iterator
@ -3881,7 +3881,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_P)
* @param comp Predicate to use. * @param comp Predicate to use.
* @return The first iterator @c i in the range * @return The first iterator @c i in the range
* @p [first1,last1) such that @c comp(*i, @p *(i2)) is true and i2 is an * @p [first1,last1) such that @c comp(*i, @p *(i2)) is true and i2 is an
* interator in [first2,last2), or @p last1 if no such iterator exists. * iterator in [first2,last2), or @p last1 if no such iterator exists.
* *
* Searches the range @p [first1,last1) for an element that is * Searches the range @p [first1,last1) for an element that is

View file

@ -75,7 +75,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* *
* This function started off as a compiler kludge from SGI, but seems to * This function started off as a compiler kludge from SGI, but seems to
* be a useful wrapper around a repeated constant expression. The '512' is * be a useful wrapper around a repeated constant expression. The '512' is
* tuneable (and no other code needs to change), but no investigation has * tunable (and no other code needs to change), but no investigation has
* been done since inheriting the SGI code. * been done since inheriting the SGI code.
*/ */
inline size_t inline size_t
@ -681,7 +681,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
using _Base::_M_get_Tp_allocator; using _Base::_M_get_Tp_allocator;
/** /**
* A total of four data members accumulated down the heirarchy. * A total of four data members accumulated down the hierarchy.
* May be accessed via _M_impl.* * May be accessed via _M_impl.*
*/ */
using _Base::_M_impl; using _Base::_M_impl;
@ -770,7 +770,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
/** /**
* The dtor only erases the elements, and note that if the elements * The dtor only erases the elements, and note that if the elements
* themselves are pointers, the pointed-to memory is not touched in any * themselves are pointers, the pointed-to memory is not touched in any
* way. Managing the pointer is the user's responsibilty. * way. Managing the pointer is the user's responsibility.
*/ */
~deque() ~deque()
{ _M_destroy_data(begin(), end(), _M_get_Tp_allocator()); } { _M_destroy_data(begin(), end(), _M_get_Tp_allocator()); }
@ -1312,7 +1312,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* The user is cautioned that * The user is cautioned that
* this function only erases the element, and that if the element is * this function only erases the element, and that if the element is
* itself a pointer, the pointed-to memory is not touched in any way. * itself a pointer, the pointed-to memory is not touched in any way.
* Managing the pointer is the user's responsibilty. * Managing the pointer is the user's responsibility.
*/ */
iterator iterator
erase(iterator __position); erase(iterator __position);
@ -1331,7 +1331,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* The user is cautioned that * The user is cautioned that
* this function only erases the elements, and that if the elements * this function only erases the elements, and that if the elements
* themselves are pointers, the pointed-to memory is not touched in any * themselves are pointers, the pointed-to memory is not touched in any
* way. Managing the pointer is the user's responsibilty. * way. Managing the pointer is the user's responsibility.
*/ */
iterator iterator
erase(iterator __first, iterator __last); erase(iterator __first, iterator __last);
@ -1367,7 +1367,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* Erases all the elements. Note that this function only erases the * Erases all the elements. Note that this function only erases the
* elements, and that if the elements themselves are pointers, the * elements, and that if the elements themselves are pointers, the
* pointed-to memory is not touched in any way. Managing the pointer is * pointed-to memory is not touched in any way. Managing the pointer is
* the user's responsibilty. * the user's responsibility.
*/ */
void void
clear() clear()

View file

@ -750,7 +750,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
// Note: In what follows, the left- and right-hand-side iterators are // Note: In what follows, the left- and right-hand-side iterators are
// allowed to vary in types (conceptually in cv-qualification) so that // allowed to vary in types (conceptually in cv-qualification) so that
// comparaison between cv-qualified and non-cv-qualified iterators be // comparison between cv-qualified and non-cv-qualified iterators be
// valid. However, the greedy and unfriendly operators in std::rel_ops // valid. However, the greedy and unfriendly operators in std::rel_ops
// will make overload resolution ambiguous (when in scope) if we don't // will make overload resolution ambiguous (when in scope) if we don't
// provide overloads whose operands are of the same type. Can someone // provide overloads whose operands are of the same type. Can someone

View file

@ -78,7 +78,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* These are empty types, used to distinguish different iterators. The * These are empty types, used to distinguish different iterators. The
* distinction is not made by what they contain, but simply by what they * distinction is not made by what they contain, but simply by what they
* are. Different underlying algorithms can then be used based on the * are. Different underlying algorithms can then be used based on the
* different operations supporetd by different iterator types. * different operations supported by different iterator types.
*/ */
/// Marking input iterators. /// Marking input iterators.
struct input_iterator_tag {}; struct input_iterator_tag {};

View file

@ -568,7 +568,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* things. The _Base dtor only erases the elements, and note * things. The _Base dtor only erases the elements, and note
* that if the elements themselves are pointers, the pointed-to * that if the elements themselves are pointers, the pointed-to
* memory is not touched in any way. Managing the pointer is * memory is not touched in any way. Managing the pointer is
* the user's responsibilty. * the user's responsibility.
*/ */
/** /**
@ -999,7 +999,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* the element being removed. The user is also cautioned that * the element being removed. The user is also cautioned that
* this function only erases the element, and that if the element * this function only erases the element, and that if the element
* is itself a pointer, the pointed-to memory is not touched in * is itself a pointer, the pointed-to memory is not touched in
* any way. Managing the pointer is the user's responsibilty. * any way. Managing the pointer is the user's responsibility.
*/ */
iterator iterator
erase(iterator __position); erase(iterator __position);
@ -1020,7 +1020,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* The user is also cautioned that this function only erases the * The user is also cautioned that this function only erases the
* elements, and that if the elements themselves are pointers, the * elements, and that if the elements themselves are pointers, the
* pointed-to memory is not touched in any way. Managing the pointer * pointed-to memory is not touched in any way. Managing the pointer
* is the user's responsibilty. * is the user's responsibility.
*/ */
iterator iterator
erase(iterator __first, iterator __last) erase(iterator __first, iterator __last)
@ -1058,7 +1058,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* Erases all the elements. Note that this function only erases * Erases all the elements. Note that this function only erases
* the elements, and that if the elements themselves are * the elements, and that if the elements themselves are
* pointers, the pointed-to memory is not touched in any way. * pointers, the pointed-to memory is not touched in any way.
* Managing the pointer is the user's responsibilty. * Managing the pointer is the user's responsibility.
*/ */
void void
clear() clear()
@ -1160,7 +1160,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* function only erases the elements, and that if the elements * function only erases the elements, and that if the elements
* themselves are pointers, the pointed-to memory is not * themselves are pointers, the pointed-to memory is not
* touched in any way. Managing the pointer is the user's * touched in any way. Managing the pointer is the user's
* responsibilty. * responsibility.
*/ */
void void
remove(const _Tp& __value); remove(const _Tp& __value);
@ -1174,7 +1174,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* that this function only erases the elements, and that if the * that this function only erases the elements, and that if the
* elements themselves are pointers, the pointed-to memory is * elements themselves are pointers, the pointed-to memory is
* not touched in any way. Managing the pointer is the user's * not touched in any way. Managing the pointer is the user's
* responsibilty. * responsibility.
*/ */
template<typename _Predicate> template<typename _Predicate>
void void
@ -1188,7 +1188,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* list order. Note that this function only erases the * list order. Note that this function only erases the
* elements, and that if the elements themselves are pointers, * elements, and that if the elements themselves are pointers,
* the pointed-to memory is not touched in any way. Managing * the pointed-to memory is not touched in any way. Managing
* the pointer is the user's responsibilty. * the pointer is the user's responsibility.
*/ */
void void
unique(); unique();
@ -1203,7 +1203,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* elements stay in list order. Note that this function only * elements stay in list order. Note that this function only
* erases the elements, and that if the elements themselves are * erases the elements, and that if the elements themselves are
* pointers, the pointed-to memory is not touched in any way. * pointers, the pointed-to memory is not touched in any way.
* Managing the pointer is the user's responsibilty. * Managing the pointer is the user's responsibility.
*/ */
template<typename _BinaryPredicate> template<typename _BinaryPredicate>
void void
@ -1228,7 +1228,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
/** /**
* @brief Merge sorted lists according to comparison function. * @brief Merge sorted lists according to comparison function.
* @param x Sorted list to merge. * @param x Sorted list to merge.
* @param StrictWeakOrdering Comparison function definining * @param StrictWeakOrdering Comparison function defining
* sort order. * sort order.
* *
* Assumes that both @a x and this list are sorted according to * Assumes that both @a x and this list are sorted according to

View file

@ -225,7 +225,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
/** /**
* The dtor only erases the elements, and note that if the elements * The dtor only erases the elements, and note that if the elements
* themselves are pointers, the pointed-to memory is not touched in any * themselves are pointers, the pointed-to memory is not touched in any
* way. Managing the pointer is the user's responsibilty. * way. Managing the pointer is the user's responsibility.
*/ */
/** /**
@ -496,7 +496,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
{ return _M_t._M_insert_unique_(__position, __x); } { return _M_t._M_insert_unique_(__position, __x); }
/** /**
* @brief Template function that attemps to insert a range of elements. * @brief Template function that attempts to insert a range of elements.
* @param first Iterator pointing to the start of the range to be * @param first Iterator pointing to the start of the range to be
* inserted. * inserted.
* @param last Iterator pointing to the end of the range. * @param last Iterator pointing to the end of the range.
@ -516,7 +516,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* iterator, from a %map. Note that this function only erases * iterator, from a %map. Note that this function only erases
* the element, and that if the element is itself a pointer, * the element, and that if the element is itself a pointer,
* the pointed-to memory is not touched in any way. Managing * the pointed-to memory is not touched in any way. Managing
* the pointer is the user's responsibilty. * the pointer is the user's responsibility.
*/ */
void void
erase(iterator __position) erase(iterator __position)
@ -531,7 +531,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* a %map. * a %map.
* Note that this function only erases the element, and that if * Note that this function only erases the element, and that if
* the element is itself a pointer, the pointed-to memory is not touched * the element is itself a pointer, the pointed-to memory is not touched
* in any way. Managing the pointer is the user's responsibilty. * in any way. Managing the pointer is the user's responsibility.
*/ */
size_type size_type
erase(const key_type& __x) erase(const key_type& __x)
@ -546,7 +546,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* This function erases a sequence of elements from a %map. * This function erases a sequence of elements from a %map.
* Note that this function only erases the element, and that if * Note that this function only erases the element, and that if
* the element is itself a pointer, the pointed-to memory is not touched * the element is itself a pointer, the pointed-to memory is not touched
* in any way. Managing the pointer is the user's responsibilty. * in any way. Managing the pointer is the user's responsibility.
*/ */
void void
erase(iterator __first, iterator __last) erase(iterator __first, iterator __last)
@ -575,7 +575,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* Erases all elements in a %map. Note that this function only * Erases all elements in a %map. Note that this function only
* erases the elements, and that if the elements themselves are * erases the elements, and that if the elements themselves are
* pointers, the pointed-to memory is not touched in any way. * pointers, the pointed-to memory is not touched in any way.
* Managing the pointer is the user's responsibilty. * Managing the pointer is the user's responsibility.
*/ */
void void
clear() clear()

View file

@ -223,7 +223,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
/** /**
* The dtor only erases the elements, and note that if the elements * The dtor only erases the elements, and note that if the elements
* themselves are pointers, the pointed-to memory is not touched in any * themselves are pointers, the pointed-to memory is not touched in any
* way. Managing the pointer is the user's responsibilty. * way. Managing the pointer is the user's responsibility.
*/ */
/** /**
@ -432,7 +432,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
{ return _M_t._M_insert_equal_(__position, __x); } { return _M_t._M_insert_equal_(__position, __x); }
/** /**
* @brief A template function that attemps to insert a range of elements. * @brief A template function that attempts to insert a range of elements.
* @param first Iterator pointing to the start of the range to be * @param first Iterator pointing to the start of the range to be
* inserted. * inserted.
* @param last Iterator pointing to the end of the range. * @param last Iterator pointing to the end of the range.
@ -452,7 +452,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* from a %multimap. Note that this function only erases the element, * from a %multimap. Note that this function only erases the element,
* and that if the element is itself a pointer, the pointed-to memory is * and that if the element is itself a pointer, the pointed-to memory is
* not touched in any way. Managing the pointer is the user's * not touched in any way. Managing the pointer is the user's
* responsibilty. * responsibility.
*/ */
void void
erase(iterator __position) erase(iterator __position)
@ -467,7 +467,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* %multimap. * %multimap.
* Note that this function only erases the element, and that if * Note that this function only erases the element, and that if
* the element is itself a pointer, the pointed-to memory is not touched * the element is itself a pointer, the pointed-to memory is not touched
* in any way. Managing the pointer is the user's responsibilty. * in any way. Managing the pointer is the user's responsibility.
*/ */
size_type size_type
erase(const key_type& __x) erase(const key_type& __x)
@ -482,7 +482,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* This function erases a sequence of elements from a %multimap. * This function erases a sequence of elements from a %multimap.
* Note that this function only erases the elements, and that if * Note that this function only erases the elements, and that if
* the elements themselves are pointers, the pointed-to memory is not * the elements themselves are pointers, the pointed-to memory is not
* touched in any way. Managing the pointer is the user's responsibilty. * touched in any way. Managing the pointer is the user's responsibility.
*/ */
void void
erase(iterator __first, iterator __last) erase(iterator __first, iterator __last)
@ -511,7 +511,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* Erases all elements in a %multimap. Note that this function only * Erases all elements in a %multimap. Note that this function only
* erases the elements, and that if the elements themselves are pointers, * erases the elements, and that if the elements themselves are pointers,
* the pointed-to memory is not touched in any way. Managing the pointer * the pointed-to memory is not touched in any way. Managing the pointer
* is the user's responsibilty. * is the user's responsibility.
*/ */
void void
clear() clear()

View file

@ -394,7 +394,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
{ return _M_t._M_insert_equal_(__position, __x); } { return _M_t._M_insert_equal_(__position, __x); }
/** /**
* @brief A template function that attemps to insert a range of elements. * @brief A template function that attempts to insert a range of elements.
* @param first Iterator pointing to the start of the range to be * @param first Iterator pointing to the start of the range to be
* inserted. * inserted.
* @param last Iterator pointing to the end of the range. * @param last Iterator pointing to the end of the range.
@ -414,7 +414,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* from a %multiset. Note that this function only erases the element, * from a %multiset. Note that this function only erases the element,
* and that if the element is itself a pointer, the pointed-to memory is * and that if the element is itself a pointer, the pointed-to memory is
* not touched in any way. Managing the pointer is the user's * not touched in any way. Managing the pointer is the user's
* responsibilty. * responsibility.
*/ */
void void
erase(iterator __position) erase(iterator __position)
@ -429,7 +429,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* %multiset. * %multiset.
* Note that this function only erases the element, and that if * Note that this function only erases the element, and that if
* the element is itself a pointer, the pointed-to memory is not touched * the element is itself a pointer, the pointed-to memory is not touched
* in any way. Managing the pointer is the user's responsibilty. * in any way. Managing the pointer is the user's responsibility.
*/ */
size_type size_type
erase(const key_type& __x) erase(const key_type& __x)
@ -444,7 +444,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* This function erases a sequence of elements from a %multiset. * This function erases a sequence of elements from a %multiset.
* Note that this function only erases the elements, and that if * Note that this function only erases the elements, and that if
* the elements themselves are pointers, the pointed-to memory is not * the elements themselves are pointers, the pointed-to memory is not
* touched in any way. Managing the pointer is the user's responsibilty. * touched in any way. Managing the pointer is the user's responsibility.
*/ */
void void
erase(iterator __first, iterator __last) erase(iterator __first, iterator __last)
@ -454,7 +454,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* Erases all elements in a %multiset. Note that this function only * Erases all elements in a %multiset. Note that this function only
* erases the elements, and that if the elements themselves are pointers, * erases the elements, and that if the elements themselves are pointers,
* the pointed-to memory is not touched in any way. Managing the pointer * the pointed-to memory is not touched in any way. Managing the pointer
* is the user's responsibilty. * is the user's responsibility.
*/ */
void void
clear() clear()

View file

@ -406,7 +406,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
{ return _M_t._M_insert_unique_(__position, __x); } { return _M_t._M_insert_unique_(__position, __x); }
/** /**
* @brief A template function that attemps to insert a range of elements. * @brief A template function that attempts to insert a range of elements.
* @param first Iterator pointing to the start of the range to be * @param first Iterator pointing to the start of the range to be
* inserted. * inserted.
* @param last Iterator pointing to the end of the range. * @param last Iterator pointing to the end of the range.
@ -425,7 +425,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* This function erases an element, pointed to by the given iterator, * This function erases an element, pointed to by the given iterator,
* from a %set. Note that this function only erases the element, and * from a %set. Note that this function only erases the element, and
* that if the element is itself a pointer, the pointed-to memory is not * that if the element is itself a pointer, the pointed-to memory is not
* touched in any way. Managing the pointer is the user's responsibilty. * touched in any way. Managing the pointer is the user's responsibility.
*/ */
void void
erase(iterator __position) erase(iterator __position)
@ -440,7 +440,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* a %set. * a %set.
* Note that this function only erases the element, and that if * Note that this function only erases the element, and that if
* the element is itself a pointer, the pointed-to memory is not touched * the element is itself a pointer, the pointed-to memory is not touched
* in any way. Managing the pointer is the user's responsibilty. * in any way. Managing the pointer is the user's responsibility.
*/ */
size_type size_type
erase(const key_type& __x) erase(const key_type& __x)
@ -455,7 +455,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* This function erases a sequence of elements from a %set. * This function erases a sequence of elements from a %set.
* Note that this function only erases the element, and that if * Note that this function only erases the element, and that if
* the element is itself a pointer, the pointed-to memory is not touched * the element is itself a pointer, the pointed-to memory is not touched
* in any way. Managing the pointer is the user's responsibilty. * in any way. Managing the pointer is the user's responsibility.
*/ */
void void
erase(iterator __first, iterator __last) erase(iterator __first, iterator __last)
@ -465,7 +465,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* Erases all elements in a %set. Note that this function only erases * Erases all elements in a %set. Note that this function only erases
* the elements, and that if the elements themselves are pointers, the * the elements, and that if the elements themselves are pointers, the
* pointed-to memory is not touched in any way. Managing the pointer is * pointed-to memory is not touched in any way. Managing the pointer is
* the user's responsibilty. * the user's responsibility.
*/ */
void void
clear() clear()

View file

@ -294,7 +294,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* The dtor only erases the elements, and note that if the * The dtor only erases the elements, and note that if the
* elements themselves are pointers, the pointed-to memory is * elements themselves are pointers, the pointed-to memory is
* not touched in any way. Managing the pointer is the user's * not touched in any way. Managing the pointer is the user's
* responsibilty. * responsibility.
*/ */
~vector() ~vector()
{ std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, { std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
@ -828,7 +828,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* The user is also cautioned that this function only erases * The user is also cautioned that this function only erases
* the element, and that if the element is itself a pointer, * the element, and that if the element is itself a pointer,
* the pointed-to memory is not touched in any way. Managing * the pointed-to memory is not touched in any way. Managing
* the pointer is the user's responsibilty. * the pointer is the user's responsibility.
*/ */
iterator iterator
erase(iterator __position); erase(iterator __position);
@ -849,7 +849,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* The user is also cautioned that this function only erases * The user is also cautioned that this function only erases
* the elements, and that if the elements themselves are * the elements, and that if the elements themselves are
* pointers, the pointed-to memory is not touched in any way. * pointers, the pointed-to memory is not touched in any way.
* Managing the pointer is the user's responsibilty. * Managing the pointer is the user's responsibility.
*/ */
iterator iterator
erase(iterator __first, iterator __last); erase(iterator __first, iterator __last);
@ -885,7 +885,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
* Erases all the elements. Note that this function only erases the * Erases all the elements. Note that this function only erases the
* elements, and that if the elements themselves are pointers, the * elements, and that if the elements themselves are pointers, the
* pointed-to memory is not touched in any way. Managing the pointer is * pointed-to memory is not touched in any way. Managing the pointer is
* the user's responsibilty. * the user's responsibility.
*/ */
void void
clear() clear()

View file

@ -239,7 +239,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
*__a = __t; *__a = __t;
} }
// fill indir ect array __a[__i[<__n>]] with __i // fill indirect array __a[__i[<__n>]] with __i
template<typename _Tp> template<typename _Tp>
inline void inline void
__valarray_fill(_Tp* __restrict__ __a, const size_t* __restrict__ __i, __valarray_fill(_Tp* __restrict__ __a, const size_t* __restrict__ __i,

View file

@ -197,7 +197,7 @@ namespace __gnu_debug
/** Revalidates all attached singular iterators. This method may /** Revalidates all attached singular iterators. This method may
* be used to validate iterators that were invalidated before * be used to validate iterators that were invalidated before
* (but for some reasion, such as an exception, need to become * (but for some reason, such as an exception, need to become
* valid again). * valid again).
*/ */
void void

View file

@ -377,7 +377,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
// Set the _rover to the last physical location bitmap, // Set the _rover to the last physical location bitmap,
// which is the bitmap which belongs to the first free // which is the bitmap which belongs to the first free
// block. Thus, the bitmaps are in exact reverse order of // block. Thus, the bitmaps are in exact reverse order of
// the actual memory layout. So, we count down the bimaps, // the actual memory layout. So, we count down the bitmaps,
// which is the same as moving up the memory. // which is the same as moving up the memory.
// If the used count stored at the start of the Bit Map headers // If the used count stored at the start of the Bit Map headers
@ -608,7 +608,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
else else
{ {
// Deallocate the last block in the list of free lists, // Deallocate the last block in the list of free lists,
// and insert the new one in it's correct position. // and insert the new one in its correct position.
::operator delete(static_cast<void*>(__free_list.back())); ::operator delete(static_cast<void*>(__free_list.back()));
__free_list.pop_back(); __free_list.pop_back();
} }

View file

@ -47,7 +47,7 @@
_GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
/// @brief Extension to use icov for dealing with character encodings. /// @brief Extension to use iconv for dealing with character encodings.
// This includes conversions and comparisons between various character // This includes conversions and comparisons between various character
// sets. This object encapsulates data that may need to be shared between // sets. This object encapsulates data that may need to be shared between
// char_traits, codecvt and ctype. // char_traits, codecvt and ctype.
@ -101,7 +101,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
// typedef STATE_T state_type // typedef STATE_T state_type
// requires: state_type shall meet the requirements of // requires: state_type shall meet the requirements of
// CopyConstructible types (20.1.3) // CopyConstructible types (20.1.3)
// NB: This does not preseve the actual state of the conversion // NB: This does not preserve the actual state of the conversion
// descriptor member, but it does duplicate the encoding // descriptor member, but it does duplicate the encoding
// information. // information.
encoding_state(const encoding_state& __obj) : _M_in_desc(0), _M_out_desc(0) encoding_state(const encoding_state& __obj) : _M_in_desc(0), _M_out_desc(0)

View file

@ -86,7 +86,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
// In order to avoid fragmenting and minimize the number of // In order to avoid fragmenting and minimize the number of
// new() calls we always request new memory using this // new() calls we always request new memory using this
// value. Based on previous discussions on the libstdc++ // value. Based on previous discussions on the libstdc++
// mailing list we have choosen the value below. // mailing list we have chosen the value below.
// See http://gcc.gnu.org/ml/libstdc++/2001-07/msg00077.html // See http://gcc.gnu.org/ml/libstdc++/2001-07/msg00077.html
// NB: At least one order of magnitude > _M_max_bytes. // NB: At least one order of magnitude > _M_max_bytes.
size_t _M_chunk_size; size_t _M_chunk_size;

View file

@ -178,7 +178,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
// (NB: last two terms for rounding reasons, see _M_create below) // (NB: last two terms for rounding reasons, see _M_create below)
// Solving for m: // Solving for m:
// m = ((npos - 2 * sizeof(_Rep) + 1) / sizeof(_CharT)) - 1 // m = ((npos - 2 * sizeof(_Rep) + 1) / sizeof(_CharT)) - 1
// In addition, this implementation halfs this amount. // In addition, this implementation halves this amount.
enum { _S_max_size = (((static_cast<size_type>(-1) - 2 * sizeof(_Rep) enum { _S_max_size = (((static_cast<size_type>(-1) - 2 * sizeof(_Rep)
+ 1) / sizeof(_CharT)) - 1) / 2 }; + 1) / sizeof(_CharT)) - 1) / 2 };

View file

@ -129,7 +129,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
{ __c = 0; } { __c = 0; }
// char_producers are logically functions that generate a section of // char_producers are logically functions that generate a section of
// a string. These can be convereted to ropes. The resulting rope // a string. These can be converted to ropes. The resulting rope
// invokes the char_producer on demand. This allows, for example, // invokes the char_producer on demand. This allows, for example,
// files to be viewed as ropes without reading the entire file. // files to be viewed as ropes without reading the entire file.
template <class _CharT> template <class _CharT>
@ -1759,7 +1759,7 @@ protected:
// definition. // definition.
static _RopeRep* _S_balance(_RopeRep* __r); static _RopeRep* _S_balance(_RopeRep* __r);
// Add all unbalanced subtrees to the forest of balanceed trees. // Add all unbalanced subtrees to the forest of balanced trees.
// Used only by balance. // Used only by balance.
static void _S_add_to_forest(_RopeRep*__r, _RopeRep** __forest); static void _S_add_to_forest(_RopeRep*__r, _RopeRep** __forest);
@ -1975,7 +1975,7 @@ protected:
// Embedded 0s in the input do not terminate the copy. // Embedded 0s in the input do not terminate the copy.
const _CharT* c_str() const; const _CharT* c_str() const;
// As above, but lso use the flattened representation as the // As above, but also use the flattened representation as
// the new rope representation. // the new rope representation.
const _CharT* replace_with_c_str(); const _CharT* replace_with_c_str();
@ -2040,7 +2040,7 @@ protected:
max_size() const max_size() const
{ {
return _S_min_len[int(__detail::_S_max_rope_depth) - 1] - 1; return _S_min_len[int(__detail::_S_max_rope_depth) - 1] - 1;
// Guarantees that the result can be sufficirntly // Guarantees that the result can be sufficiently
// balanced. Longer ropes will probably still work, // balanced. Longer ropes will probably still work,
// but it's harder to make guarantees. // but it's harder to make guarantees.
} }

View file

@ -82,7 +82,7 @@ namespace __gnu_parallel
/** /**
* @brief Check whether @c [begin, @c end) is sorted according to @c comp. * @brief Check whether @c [begin, @c end) is sorted according to @c comp.
* Prints the position in case an misordered pair is found. * Prints the position in case an unordered pair is found.
* @param begin Begin iterator of sequence. * @param begin Begin iterator of sequence.
* @param end End iterator of sequence. * @param end End iterator of sequence.
* @param first_failure The first failure is returned in this variable. * @param first_failure The first failure is returned in this variable.
@ -123,7 +123,7 @@ namespace __gnu_parallel
/** /**
* @brief Check whether @c [begin, @c end) is sorted according to @c comp. * @brief Check whether @c [begin, @c end) is sorted according to @c comp.
* Prints all misordered pair, including the surrounding two elements. * Prints all unordered pair, including the surrounding two elements.
* @param begin Begin iterator of sequence. * @param begin Begin iterator of sequence.
* @param end End iterator of sequence. * @param end End iterator of sequence.
* @param comp Comparator. * @param comp Comparator.

View file

@ -10,7 +10,7 @@
// This library is distributed in the hope that it will be useful, but // This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of // WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURstartE. See the GNU // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details. // General Public License for more details.
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License

View file

@ -602,7 +602,7 @@ namespace __gnu_parallel
if (!maxleftset || comp(minright, maxleft)) if (!maxleftset || comp(minright, maxleft))
{ {
// Good luck, everything is split unambigiously. // Good luck, everything is split unambiguously.
offset = 0; offset = 0;
} }
else else

View file

@ -386,7 +386,7 @@ template<typename RandomAccessIterator, typename Comparator>
|| (end - split_pos1) < (n >> 7)) || (end - split_pos1) < (n >> 7))
{ {
// Very unequal split, one part smaller than one 128th // Very unequal split, one part smaller than one 128th
// elements not stricly larger than the pivot. // elements not strictly larger than the pivot.
__gnu_parallel::unary_negate<__gnu_parallel:: __gnu_parallel::unary_negate<__gnu_parallel::
binder1st<Comparator, value_type, value_type, bool>, value_type> binder1st<Comparator, value_type, value_type, bool>, value_type>
pred(__gnu_parallel::binder1st<Comparator, value_type, pred(__gnu_parallel::binder1st<Comparator, value_type,

View file

@ -100,7 +100,7 @@
/** /**
* @brief The extensible condition on whether the parallel variant of * @brief The extensible condition on whether the parallel variant of
* an algorithm sould be called. * an algorithm should be called.
* @param c A condition that is overruled by * @param c A condition that is overruled by
* __gnu_parallel::Settings::force_parallel, i. e. usually a decision based on * __gnu_parallel::Settings::force_parallel, i. e. usually a decision based on
* the input size. * the input size.
@ -114,7 +114,7 @@ namespace __gnu_parallel
{ {
// NB: Including this file cannot produce (unresolved) symbols from // NB: Including this file cannot produce (unresolved) symbols from
// the OpenMP runtime unless the parallel mode is actually invoked // the OpenMP runtime unless the parallel mode is actually invoked
// and active, which imples that the OpenMP runtime is actually // and active, which implies that the OpenMP runtime is actually
// going to be linked in. // going to be linked in.
inline int inline int
get_max_threads() get_max_threads()

View file

@ -65,7 +65,7 @@
_GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D) _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
/** /**
* Base class, general case. It is a class inveriant that _Nw will be * Base class, general case. It is a class invariant that _Nw will be
* nonnegative. * nonnegative.
* *
* See documentation for bitset. * See documentation for bitset.
@ -999,7 +999,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
//@} //@}
/** /**
* @brief Retuns a numerical interpretation of the %bitset. * @brief Returns a numerical interpretation of the %bitset.
* @return The integral equivalent of the bits. * @return The integral equivalent of the bits.
* @throw std::overflow_error If there are too many bits to be * @throw std::overflow_error If there are too many bits to be
* represented in an @c unsigned @c long. * represented in an @c unsigned @c long.
@ -1009,7 +1009,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
{ return this->_M_do_to_ulong(); } { return this->_M_do_to_ulong(); }
/** /**
* @brief Retuns a character interpretation of the %bitset. * @brief Returns a character interpretation of the %bitset.
* @return The string equivalent of the bits. * @return The string equivalent of the bits.
* *
* Note the ordering of the bits: decreasing character positions * Note the ordering of the bits: decreasing character positions

View file

@ -610,7 +610,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
arg(const complex<_Tp>& __z) { return __complex_arg(__z); } arg(const complex<_Tp>& __z) { return __complex_arg(__z); }
#endif #endif
// 26.2.7/5: norm(__z) returns the squared magintude of __z. // 26.2.7/5: norm(__z) returns the squared magnitude of __z.
// As defined, norm() is -not- a norm is the common mathematical // As defined, norm() is -not- a norm is the common mathematical
// sens used in numerics. The helper class _Norm_helper<> tries to // sens used in numerics. The helper class _Norm_helper<> tries to
// distinguish between builtin floating point and the rest, so as // distinguish between builtin floating point and the rest, so as
@ -744,7 +744,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
exp(const complex<_Tp>& __z) { return __complex_exp(__z); } exp(const complex<_Tp>& __z) { return __complex_exp(__z); }
#endif #endif
// 26.2.8/5 log(__z): Reurns the natural complex logaritm of __z. // 26.2.8/5 log(__z): Returns the natural complex logarithm of __z.
// The branch cut is along the negative axis. // The branch cut is along the negative axis.
template<typename _Tp> template<typename _Tp>
inline complex<_Tp> inline complex<_Tp>
@ -1024,7 +1024,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
complex<float>& operator*=(float); complex<float>& operator*=(float);
complex<float>& operator/=(float); complex<float>& operator/=(float);
// Let's the compiler synthetize the copy and assignment // Let the compiler synthesize the copy and assignment
// operator. It always does a pretty good job. // operator. It always does a pretty good job.
// complex& operator= (const complex&); // complex& operator= (const complex&);
template<typename _Tp> template<typename _Tp>
@ -1178,7 +1178,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
complex<double>& operator*=(double); complex<double>& operator*=(double);
complex<double>& operator/=(double); complex<double>& operator/=(double);
// The compiler will synthetize this, efficiently. // The compiler will synthesize this, efficiently.
// complex& operator= (const complex&); // complex& operator= (const complex&);
template<typename _Tp> template<typename _Tp>
complex<double>& operator=(const complex<_Tp>&); complex<double>& operator=(const complex<_Tp>&);

View file

@ -56,7 +56,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* *
* This class associates both its input and output sequence with an * This class associates both its input and output sequence with an
* external disk file, and maintains a joint file position for both * external disk file, and maintains a joint file position for both
* sequences. Many of its sematics are described in terms of similar * sequences. Many of its semantics are described in terms of similar
* behavior in the Standard C Library's @c FILE streams. * behavior in the Standard C Library's @c FILE streams.
*/ */
// Requirements on traits_type, specific to this class: // Requirements on traits_type, specific to this class:
@ -292,7 +292,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// Stroustrup, 1998, p. 628 // Stroustrup, 1998, p. 628
// underflow() and uflow() functions are called to get the next // underflow() and uflow() functions are called to get the next
// charater from the real input source when the buffer is empty. // character from the real input source when the buffer is empty.
// Buffered input uses underflow() // Buffered input uses underflow()
virtual int_type virtual int_type
@ -650,7 +650,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// [27.8.1.11] Template class basic_fstream // [27.8.1.11] Template class basic_fstream
/** /**
* @brief Controlling intput and output for files. * @brief Controlling input and output for files.
* *
* This class supports reading from and writing to named files, using * This class supports reading from and writing to named files, using
* the inherited functions from std::basic_iostream. To control the * the inherited functions from std::basic_iostream. To control the

View file

@ -114,7 +114,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
/** /**
* @brief Interface for manipulators. * @brief Interface for manipulators.
* *
* Manuipulators such as @c std::ws and @c std::dec use these * Manipulators such as @c std::ws and @c std::dec use these
* functions in constructs like "std::cin >> std::ws". For more * functions in constructs like "std::cin >> std::ws". For more
* information, see the iomanip header. * information, see the iomanip header.
*/ */

View file

@ -63,7 +63,7 @@
// double (1) // double (1)
// long double (1) // long double (1)
// //
// GNU C++ undertstands (where supported by the host C-library) // GNU C++ understands (where supported by the host C-library)
// * integer // * integer
// long long, unsigned long long (2) // long long, unsigned long long (2)
// //
@ -79,7 +79,7 @@
// These values can be overridden in the target configuration file. // These values can be overridden in the target configuration file.
// The default values are appropriate for many 32-bit targets. // The default values are appropriate for many 32-bit targets.
// GCC only intrinsicly supports modulo integral types. The only remaining // GCC only intrinsically supports modulo integral types. The only remaining
// integral exceptional values is division by zero. Only targets that do not // integral exceptional values is division by zero. Only targets that do not
// signal division by zero in some "hard to ignore" way should use false. // signal division by zero in some "hard to ignore" way should use false.
#ifndef __glibcxx_integral_traps #ifndef __glibcxx_integral_traps
@ -89,7 +89,7 @@
// float // float
// //
// Default values. Should be overriden in configuration files if necessary. // Default values. Should be overridden in configuration files if necessary.
#ifndef __glibcxx_float_has_denorm_loss #ifndef __glibcxx_float_has_denorm_loss
# define __glibcxx_float_has_denorm_loss false # define __glibcxx_float_has_denorm_loss false
@ -103,7 +103,7 @@
// double // double
// Default values. Should be overriden in configuration files if necessary. // Default values. Should be overridden in configuration files if necessary.
#ifndef __glibcxx_double_has_denorm_loss #ifndef __glibcxx_double_has_denorm_loss
# define __glibcxx_double_has_denorm_loss false # define __glibcxx_double_has_denorm_loss false
@ -117,7 +117,7 @@
// long double // long double
// Default values. Should be overriden in configuration files if necessary. // Default values. Should be overridden in configuration files if necessary.
#ifndef __glibcxx_long_double_has_denorm_loss #ifndef __glibcxx_long_double_has_denorm_loss
# define __glibcxx_long_double_has_denorm_loss false # define __glibcxx_long_double_has_denorm_loss false
@ -186,7 +186,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* The @c static @c const members are usable as integral constant * The @c static @c const members are usable as integral constant
* expressions. * expressions.
* *
* @note This is a seperate class for purposes of efficiency; you * @note This is a separate class for purposes of efficiency; you
* should only access these members as part of an instantiation * should only access these members as part of an instantiation
* of the std::numeric_limits class. * of the std::numeric_limits class.
*/ */
@ -260,7 +260,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
/** True if trapping is implemented for this type. */ /** True if trapping is implemented for this type. */
static const bool traps = false; static const bool traps = false;
/** True if tinyness is detected before rounding. (see IEC 559) */ /** True if tininess is detected before rounding. (see IEC 559) */
static const bool tinyness_before = false; static const bool tinyness_before = false;
/** See std::float_round_style for more information. This is only /** See std::float_round_style for more information. This is only
meaningful for floating types; integer types will all be meaningful for floating types; integer types will all be

View file

@ -108,7 +108,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
/** /**
* @brief Interface for manipulators. * @brief Interface for manipulators.
* *
* Manuipulators such as @c std::endl and @c std::hex use these * Manipulators such as @c std::endl and @c std::hex use these
* functions in constructs like "std::cout << std::endl". For more * functions in constructs like "std::cout << std::endl". For more
* information, see the iomanip header. * information, see the iomanip header.
*/ */
@ -510,7 +510,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
basic_ostream<_CharT, _Traits> & basic_ostream<_CharT, _Traits> &
operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s); operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s);
// Partial specializationss // Partial specializations
template<class _Traits> template<class _Traits>
inline basic_ostream<char, _Traits>& inline basic_ostream<char, _Traits>&
operator<<(basic_ostream<char, _Traits>& __out, const char* __s) operator<<(basic_ostream<char, _Traits>& __out, const char* __s)

View file

@ -69,7 +69,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
}; };
/** Thrown by the library, or by you, to report domain errors (domain in /** Thrown by the library, or by you, to report domain errors (domain in
* the mathmatical sense). */ * the mathematical sense). */
class domain_error : public logic_error class domain_error : public logic_error
{ {
public: public:

View file

@ -559,7 +559,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// [27.5.2.4.2] buffer management and positioning // [27.5.2.4.2] buffer management and positioning
/** /**
* @brief Maniuplates the buffer. * @brief Manipulates the buffer.
* *
* Each derived class provides its own appropriate behavior. See * Each derived class provides its own appropriate behavior. See
* the next-to-last paragraph of * the next-to-last paragraph of
@ -655,7 +655,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* next available character is returned, or @c traits::eof() to * next available character is returned, or @c traits::eof() to
* indicate a null pending sequence. * indicate a null pending sequence.
* *
* For a formal definiton of the pending sequence, see a good text * For a formal definition of the pending sequence, see a good text
* such as Langer & Kreft, or [27.5.2.4.3]/7-14. * such as Langer & Kreft, or [27.5.2.4.3]/7-14.
* *
* A functioning input streambuf can be created by overriding only * A functioning input streambuf can be created by overriding only
@ -736,7 +736,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* sequence verbatim.) In either case, the character @a c is also * sequence verbatim.) In either case, the character @a c is also
* written out, if @a c is not @c eof(). * written out, if @a c is not @c eof().
* *
* For a formal definiton of this function, see a good text * For a formal definition of this function, see a good text
* such as Langer & Kreft, or [27.5.2.4.5]/3-7. * such as Langer & Kreft, or [27.5.2.4.5]/3-7.
* *
* A functioning output streambuf can be created by overriding only * A functioning output streambuf can be created by overriding only

View file

@ -131,7 +131,7 @@ namespace tr1
* @param __nu The order of the Bessel functions. * @param __nu The order of the Bessel functions.
* @param __x The argument of the Bessel functions. * @param __x The argument of the Bessel functions.
* @param __Jnu The output Bessel function of the first kind. * @param __Jnu The output Bessel function of the first kind.
* @param __Nnu The output Neumann function (Bessel fuction of the second kind). * @param __Nnu The output Neumann function (Bessel function of the second kind).
* @param __Jpnu The output derivative of the Bessel function of the first kind. * @param __Jpnu The output derivative of the Bessel function of the first kind.
* @param __Npnu The output derivative of the Neumann function. * @param __Npnu The output derivative of the Neumann function.
*/ */
@ -345,7 +345,7 @@ namespace tr1
/** /**
* @brief This routine computes the asyptotic cylindrical Bessel * @brief This routine computes the asymptotic cylindrical Bessel
* and Neumann functions of order nu: \f$ J_{\nu} \f$, * and Neumann functions of order nu: \f$ J_{\nu} \f$,
* \f$ N_{\nu} \f$. * \f$ N_{\nu} \f$.
* *
@ -358,7 +358,7 @@ namespace tr1
* @param __nu The order of the Bessel functions. * @param __nu The order of the Bessel functions.
* @param __x The argument of the Bessel functions. * @param __x The argument of the Bessel functions.
* @param __Jnu The output Bessel function of the first kind. * @param __Jnu The output Bessel function of the first kind.
* @param __Nnu The output Neumann function (Bessel fuction of the second kind). * @param __Nnu The output Neumann function (Bessel function of the second kind).
*/ */
template <typename _Tp> template <typename _Tp>
void void
@ -401,7 +401,7 @@ namespace tr1
* \frac{\sigma^k (x/2)^{\nu + 2k}}{k!\Gamma(\nu+k+1)} * \frac{\sigma^k (x/2)^{\nu + 2k}}{k!\Gamma(\nu+k+1)}
* @f] * @f]
* where \f$ \sigma = +1 \f$ or\f$ -1 \f$ for * where \f$ \sigma = +1 \f$ or\f$ -1 \f$ for
* \f$ Z = I \f$ or \f$ J \f$ respecively. * \f$ Z = I \f$ or \f$ J \f$ respectively.
* *
* See Abramowitz & Stegun, 9.1.10 * See Abramowitz & Stegun, 9.1.10
* Abramowitz & Stegun, 9.6.7 * Abramowitz & Stegun, 9.6.7
@ -488,7 +488,7 @@ namespace tr1
/** /**
* @brief Return the Neunamm function of order \f$ \nu \f$: * @brief Return the Neumann function of order \f$ \nu \f$:
* \f$ N_{\nu}(x) \f$. * \f$ N_{\nu}(x) \f$.
* *
* The Neumann function is defined by: * The Neumann function is defined by:

View file

@ -135,7 +135,7 @@ namespace tr1
return __detail::__beta<__type>(__x, __y); return __detail::__beta<__type>(__x, __y);
} }
// 5.2.1.4 Complete elliptic interals of the first kind. // 5.2.1.4 Complete elliptic integrals of the first kind.
inline float inline float
comp_ellint_1f(float __k) comp_ellint_1f(float __k)
{ return __detail::__comp_ellint_1<float>(__k); } { return __detail::__comp_ellint_1<float>(__k); }
@ -152,7 +152,7 @@ namespace tr1
return __detail::__comp_ellint_1<__type>(__k); return __detail::__comp_ellint_1<__type>(__k);
} }
// 5.2.1.5 Complete elliptic interals of the second kind. // 5.2.1.5 Complete elliptic integrals of the second kind.
inline float inline float
comp_ellint_2f(float __k) comp_ellint_2f(float __k)
{ return __detail::__comp_ellint_2<float>(__k); } { return __detail::__comp_ellint_2<float>(__k); }
@ -169,7 +169,7 @@ namespace tr1
return __detail::__comp_ellint_2<__type>(__k); return __detail::__comp_ellint_2<__type>(__k);
} }
// 5.2.1.6 Complete elliptic interals of the third kind. // 5.2.1.6 Complete elliptic integrals of the third kind.
inline float inline float
comp_ellint_3f(float __k, float __nu) comp_ellint_3f(float __k, float __nu)
{ return __detail::__comp_ellint_3<float>(__k, __nu); } { return __detail::__comp_ellint_3<float>(__k, __nu); }
@ -271,7 +271,7 @@ namespace tr1
return __detail::__cyl_neumann_n<__type>(__nu, __x); return __detail::__cyl_neumann_n<__type>(__nu, __x);
} }
// 5.2.1.12 Incomplete elliptic interals of the first kind. // 5.2.1.12 Incomplete elliptic integrals of the first kind.
inline float inline float
ellint_1f(float __k, float __phi) ellint_1f(float __k, float __phi)
{ return __detail::__ellint_1<float>(__k, __phi); } { return __detail::__ellint_1<float>(__k, __phi); }
@ -288,7 +288,7 @@ namespace tr1
return __detail::__ellint_1<__type>(__k, __phi); return __detail::__ellint_1<__type>(__k, __phi);
} }
// 5.2.1.13 Incomplete elliptic interals of the second kind. // 5.2.1.13 Incomplete elliptic integrals of the second kind.
inline float inline float
ellint_2f(float __k, float __phi) ellint_2f(float __k, float __phi)
{ return __detail::__ellint_2<float>(__k, __phi); } { return __detail::__ellint_2<float>(__k, __phi); }
@ -305,7 +305,7 @@ namespace tr1
return __detail::__ellint_2<__type>(__k, __phi); return __detail::__ellint_2<__type>(__k, __phi);
} }
// 5.2.1.14 Incomplete elliptic interals of the third kind. // 5.2.1.14 Incomplete elliptic integrals of the third kind.
inline float inline float
ellint_3f(float __k, float __nu, float __phi) ellint_3f(float __k, float __nu, float __phi)
{ return __detail::__ellint_3<float>(__k, __nu, __phi); } { return __detail::__ellint_3<float>(__k, __nu, __phi); }

View file

@ -313,7 +313,7 @@ namespace tr1
* Based on Carlson's algorithms: * Based on Carlson's algorithms:
* - B. C. Carlson Numer. Math. 33, 1 (1979) * - B. C. Carlson Numer. Math. 33, 1 (1979)
* - B. C. Carlson, Special Functions of Applied Mathematics (1977) * - B. C. Carlson, Special Functions of Applied Mathematics (1977)
* - Nunerical Recipes in C, 2nd ed, pp. 261-269, * - Numerical Recipes in C, 2nd ed, pp. 261-269,
* by Press, Teukolsky, Vetterling, Flannery (1992) * by Press, Teukolsky, Vetterling, Flannery (1992)
* *
* @param __x The first of two symmetric arguments. * @param __x The first of two symmetric arguments.
@ -494,7 +494,7 @@ namespace tr1
* Based on Carlson's algorithms: * Based on Carlson's algorithms:
* - B. C. Carlson Numer. Math. 33, 1 (1979) * - B. C. Carlson Numer. Math. 33, 1 (1979)
* - B. C. Carlson, Special Functions of Applied Mathematics (1977) * - B. C. Carlson, Special Functions of Applied Mathematics (1977)
* - Nunerical Recipes in C, 2nd ed, pp. 261-269, * - Numerical Recipes in C, 2nd ed, pp. 261-269,
* by Press, Teukolsky, Vetterling, Flannery (1992) * by Press, Teukolsky, Vetterling, Flannery (1992)
* *
* @param __x The first argument. * @param __x The first argument.
@ -563,7 +563,7 @@ namespace tr1
* Based on Carlson's algorithms: * Based on Carlson's algorithms:
* - B. C. Carlson Numer. Math. 33, 1 (1979) * - B. C. Carlson Numer. Math. 33, 1 (1979)
* - B. C. Carlson, Special Functions of Applied Mathematics (1977) * - B. C. Carlson, Special Functions of Applied Mathematics (1977)
* - Nunerical Recipes in C, 2nd ed, pp. 261-269, * - Numerical Recipes in C, 2nd ed, pp. 261-269,
* by Press, Teukolsky, Vetterling, Flannery (1992) * by Press, Teukolsky, Vetterling, Flannery (1992)
* *
* @param __x The first of three symmetric arguments. * @param __x The first of three symmetric arguments.

View file

@ -66,7 +66,7 @@ namespace tr1
{ {
/** /**
* @brief This routine returns the confluent hypereometric function * @brief This routine returns the confluent hypergeometric function
* by series expansion. * by series expansion.
* *
* @f[ * @f[
@ -78,7 +78,7 @@ namespace tr1
* *
* If a and b are integers and a < 0 and either b > 0 or b < a then the * If a and b are integers and a < 0 and either b > 0 or b < a then the
* series is a polynomial with a finite number of terms. If b is an integer * series is a polynomial with a finite number of terms. If b is an integer
* and b <= 0 the the confluent hypergeometric function is undefined. * and b <= 0 the confluent hypergeometric function is undefined.
* *
* @param __a The "numerator" parameter. * @param __a The "numerator" parameter.
* @param __c The "denominator" parameter. * @param __c The "denominator" parameter.

View file

@ -128,7 +128,7 @@ namespace tr1
* on @f$ l @f$. * on @f$ l @f$.
* *
* The associated Legendre function is derived from the Legendre function * The associated Legendre function is derived from the Legendre function
* @f$ P_l(x) @f$ by the Rodruigez formula: * @f$ P_l(x) @f$ by the Rodrigues formula:
* @f[ * @f[
* P_l^m(x) = (1 - x^2)^{m/2}\frac{d^m}{dx^m}P_l(x) * P_l^m(x) = (1 - x^2)^{m/2}\frac{d^m}{dx^m}P_l(x)
* @f] * @f]

View file

@ -149,7 +149,7 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
} // namespace __detail } // namespace __detail
/** /**
* Produces random numbers on a given disribution function using a un uniform * Produces random numbers on a given distribution function using a non-uniform
* random number generation engine. * random number generation engine.
* *
* @todo the engine_value_type needs to be studied more carefully. * @todo the engine_value_type needs to be studied more carefully.
@ -260,7 +260,7 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
* A number generator is a function object with an operator() that * A number generator is a function object with an operator() that
* takes zero arguments and returns a number. * takes zero arguments and returns a number.
* *
* A compliant random number generator must satisy the following * A compliant random number generator must satisfy the following
* requirements. <table border=1 cellpadding=10 cellspacing=0> * requirements. <table border=1 cellpadding=10 cellspacing=0>
* <caption align=top>Random Number Generator Requirements</caption> * <caption align=top>Random Number Generator Requirements</caption>
* <tr><td>To be documented.</td></tr> </table> * <tr><td>To be documented.</td></tr> </table>
@ -342,7 +342,7 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
/** /**
* Gets the smallest possible value in the output range. * Gets the smallest possible value in the output range.
* *
* The minumum depends on the @p __c parameter: if it is zero, the * The minimum depends on the @p __c parameter: if it is zero, the
* minimum generated must be > 0, otherwise 0 is allowed. * minimum generated must be > 0, otherwise 0 is allowed.
*/ */
result_type result_type
@ -452,7 +452,7 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
/** /**
* A generalized feedback shift register discrete random number generator. * A generalized feedback shift register discrete random number generator.
* *
* This algorithm avoind multiplication and division and is designed to be * This algorithm avoids multiplication and division and is designed to be
* friendly to a pipelined architecture. If the parameters are chosen * friendly to a pipelined architecture. If the parameters are chosen
* correctly, this generator will produce numbers with a very long period and * correctly, this generator will produce numbers with a very long period and
* fairly good apparent entropy, although still not cryptographically strong. * fairly good apparent entropy, although still not cryptographically strong.
@ -1041,7 +1041,7 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
/** /**
* Copy constructs a %discard_block engine. * Copy constructs a %discard_block engine.
* *
* Copies an existing base class random number geenerator. * Copies an existing base class random number generator.
* @param rng An existing (base class) engine object. * @param rng An existing (base class) engine object.
*/ */
explicit explicit
@ -1229,9 +1229,9 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
// result_type, ArithmeticTypeConcept) // result_type, ArithmeticTypeConcept)
public: public:
/** The type of the the first underlying generator engine. */ /** The type of the first underlying generator engine. */
typedef _UniformRandomNumberGenerator1 base1_type; typedef _UniformRandomNumberGenerator1 base1_type;
/** The type of the the second underlying generator engine. */ /** The type of the second underlying generator engine. */
typedef _UniformRandomNumberGenerator2 base2_type; typedef _UniformRandomNumberGenerator2 base2_type;
private: private:
@ -1585,7 +1585,7 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
const uniform_int<_IntType1>& __x); const uniform_int<_IntType1>& __x);
/** /**
* Extracts a %unform_int random number distribution * Extracts a %uniform_int random number distribution
* @p __x from the input stream @p __is. * @p __x from the input stream @p __is.
* *
* @param __is An input stream. * @param __is An input stream.
@ -1655,7 +1655,7 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
/** /**
* Resets the distribution state. * Resets the distribution state.
* *
* Does nothing for a bernoulli distribution. * Does nothing for a Bernoulli distribution.
*/ */
void void
reset() { } reset() { }
@ -1796,7 +1796,7 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
/** /**
* @brief A discrete Poisson random number distribution. * @brief A discrete Poisson random number distribution.
* *
* The formula for the poisson probability mass function is * The formula for the Poisson probability mass function is
* @f$ p(i) = \frac{mean^i}{i!} e^{-mean} @f$ where @f$ mean @f$ is the * @f$ p(i) = \frac{mean^i}{i!} e^{-mean} @f$ where @f$ mean @f$ is the
* parameter of the distribution. * parameter of the distribution.
*/ */
@ -2050,7 +2050,7 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
const uniform_real<_RealType1>& __x); const uniform_real<_RealType1>& __x);
/** /**
* Extracts a %unform_real random number distribution * Extracts a %uniform_real random number distribution
* @p __x from the input stream @p __is. * @p __x from the input stream @p __is.
* *
* @param __is An input stream. * @param __is An input stream.

View file

@ -193,7 +193,7 @@ namespace regex_constants
/// The expression does not match an empty sequence. /// The expression does not match an empty sequence.
static const match_flag_type match_not_null = 1 << _S_not_null; static const match_flag_type match_not_null = 1 << _S_not_null;
/// The expression only matchs a sub-sequence that begins at first . /// The expression only matches a sub-sequence that begins at first .
static const match_flag_type match_continuous = 1 << _S_continuous; static const match_flag_type match_continuous = 1 << _S_continuous;
/// --first is a valid iterator position. When this flag is set then the /// --first is a valid iterator position. When this flag is set then the
@ -213,7 +213,7 @@ namespace regex_constants
/// Format strings (from ECMA-262 [15.5.4.11]): /// Format strings (from ECMA-262 [15.5.4.11]):
/// $$ $ /// $$ $
/// $& The matched substring. /// $& The matched substring.
/// $` The portion of <em>string</em> that preceeds the matched substring. /// $` The portion of <em>string</em> that precedes the matched substring.
/// $' The portion of <em>string</em> that follows the matched substring. /// $' The portion of <em>string</em> that follows the matched substring.
/// $n The nth capture, where n is in [1,9] and $n is not followed by a /// $n The nth capture, where n is in [1,9] and $n is not followed by a
/// decimal digit. If n <= m and the nth capture is undefined, use the /// decimal digit. If n <= m and the nth capture is undefined, use the
@ -371,7 +371,7 @@ namespace regex_constants
* *
* @returns the number of characters between @p *__p and the first * @returns the number of characters between @p *__p and the first
* default-initialized value of type @p char_type. In other words, uses * default-initialized value of type @p char_type. In other words, uses
* the C-string algorithm for determiining the length of a sequence of * the C-string algorithm for determining the length of a sequence of
* characters. * characters.
*/ */
static std::size_t static std::size_t
@ -458,7 +458,7 @@ namespace regex_constants
{ return string_type(); } { return string_type(); }
/** /**
* @breief Gets a collation element by name. * @brief Gets a collation element by name.
* *
* @param first beginning of the collation element name. * @param first beginning of the collation element name.
* @param last one-past-the-end of the collation element name. * @param last one-past-the-end of the collation element name.
@ -687,7 +687,7 @@ namespace regex_constants
{ _M_compile(); } { _M_compile(); }
/** /**
* @brief Copy-contructs a basic regular expression. * @brief Copy-constructs a basic regular expression.
* *
* @param rhs A @p regex object. * @param rhs A @p regex object.
*/ */
@ -716,7 +716,7 @@ namespace regex_constants
* @brief Constructs a basic regular expression from the range * @brief Constructs a basic regular expression from the range
* [first, last) interpreted according to the flags in @p f. * [first, last) interpreted according to the flags in @p f.
* *
* @param first The start of arange containing a valid regular * @param first The start of a range containing a valid regular
* expression. * expression.
* @param last The end of a range containing a valid regular * @param last The end of a range containing a valid regular
* expression. * expression.
@ -857,7 +857,7 @@ namespace regex_constants
// [7.8.4] const operations // [7.8.4] const operations
/** /**
* @brief Gets the number of marked subexpressions within the regular * @brief Gets the number of marked subexpressions within the regular
* expresison. * expression.
*/ */
unsigned int unsigned int
mark_count() const mark_count() const
@ -891,7 +891,7 @@ namespace regex_constants
// [7.8.6] swap // [7.8.6] swap
/** /**
* @brief Swaps the contents of two regular expression obects. * @brief Swaps the contents of two regular expression objects.
* *
* @param rhs Another regular expression object. * @param rhs Another regular expression object.
*/ */
@ -1102,7 +1102,7 @@ namespace regex_constants
* @brief Tests the ordering of two regular expression submatches. * @brief Tests the ordering of two regular expression submatches.
* @param lhs First regular expression submatch. * @param lhs First regular expression submatch.
* @param rhs Second regular expression submatch. * @param rhs Second regular expression submatch.
* @returns true if @a lhs does not preceed @a rhs, false otherwise. * @returns true if @a lhs does not precede @a rhs, false otherwise.
*/ */
template<typename _BiIter> template<typename _BiIter>
inline bool inline bool
@ -1181,7 +1181,7 @@ namespace regex_constants
* @brief Tests the ordering of a string and a regular expression submatch. * @brief Tests the ordering of a string and a regular expression submatch.
* @param lhs A string. * @param lhs A string.
* @param rhs A regular expression submatch. * @param rhs A regular expression submatch.
* @returns true if @a lhs does not preceed @a rhs, false otherwise. * @returns true if @a lhs does not precede @a rhs, false otherwise.
*/ */
template<typename _Bi_iter, typename _Ch_traits, typename _Ch_alloc> template<typename _Bi_iter, typename _Ch_traits, typename _Ch_alloc>
inline bool inline bool
@ -1265,7 +1265,7 @@ namespace regex_constants
* @brief Tests the ordering of a regular expression submatch and a string. * @brief Tests the ordering of a regular expression submatch and a string.
* @param lhs A regular expression submatch. * @param lhs A regular expression submatch.
* @param rhs A string. * @param rhs A string.
* @returns true if @a lhs does not preceed @a rhs, false otherwise. * @returns true if @a lhs does not precede @a rhs, false otherwise.
*/ */
template<typename _Bi_iter, class _Ch_traits, class _Ch_alloc> template<typename _Bi_iter, class _Ch_traits, class _Ch_alloc>
inline bool inline bool
@ -1343,7 +1343,7 @@ namespace regex_constants
* @brief Tests the ordering of a string and a regular expression submatch. * @brief Tests the ordering of a string and a regular expression submatch.
* @param lhs A string. * @param lhs A string.
* @param rhs A regular expression submatch. * @param rhs A regular expression submatch.
* @returns true if @a lhs does not preceed @a rhs, false otherwise. * @returns true if @a lhs does not precede @a rhs, false otherwise.
*/ */
template<typename _Bi_iter> template<typename _Bi_iter>
inline bool inline bool
@ -1491,7 +1491,7 @@ namespace regex_constants
* @brief Tests the ordering of a string and a regular expression submatch. * @brief Tests the ordering of a string and a regular expression submatch.
* @param lhs A string. * @param lhs A string.
* @param rhs A regular expression submatch. * @param rhs A regular expression submatch.
* @returns true if @a lhs does not preceed @a rhs, false otherwise. * @returns true if @a lhs does not precede @a rhs, false otherwise.
*/ */
template<typename _Bi_iter> template<typename _Bi_iter>
inline bool inline bool
@ -1541,7 +1541,7 @@ namespace regex_constants
* @brief Tests the ordering of a regular expression submatch and a string. * @brief Tests the ordering of a regular expression submatch and a string.
* @param lhs A regular expression submatch. * @param lhs A regular expression submatch.
* @param rhs A const string reference. * @param rhs A const string reference.
* @returns true if @a lhs preceeds @a rhs, false otherwise. * @returns true if @a lhs precedes @a rhs, false otherwise.
*/ */
template<typename _Bi_iter> template<typename _Bi_iter>
inline bool inline bool
@ -1565,7 +1565,7 @@ namespace regex_constants
* @brief Tests the ordering of a regular expression submatch and a string. * @brief Tests the ordering of a regular expression submatch and a string.
* @param lhs A regular expression submatch. * @param lhs A regular expression submatch.
* @param rhs A const string reference. * @param rhs A const string reference.
* @returns true if @a lhs does not preceed @a rhs, false otherwise. * @returns true if @a lhs does not precede @a rhs, false otherwise.
*/ */
template<typename _Bi_iter> template<typename _Bi_iter>
inline bool inline bool
@ -2021,7 +2021,7 @@ namespace regex_constants
/** /**
* @brief Searches for a regular expression within a C-string. * @brief Searches for a regular expression within a C-string.
* @param s [IN] A C-string to search for the regex. * @param s [IN] A C-string to search for the regex.
* @param m [OUT] The set of regex mnatches. * @param m [OUT] The set of regex matches.
* @param e [IN] The regex to search for in @p s. * @param e [IN] The regex to search for in @p s.
* @param f [IN] The search flags. * @param f [IN] The search flags.
* @retval true A match was found within the string. * @retval true A match was found within the string.
@ -2041,7 +2041,7 @@ namespace regex_constants
/** /**
* @brief Searches for a regular expression within a C-string. * @brief Searches for a regular expression within a C-string.
* @param s [IN] The C-string to search. * @param s [IN] The C-string to search.
* @param e [IN] The regular expressioon to search for. * @param e [IN] The regular expression to search for.
* @param f [IN] Search policy flags. * @param f [IN] Search policy flags.
* @retval true A match was found within the string. * @retval true A match was found within the string.
* @retval false No match was found within the string. * @retval false No match was found within the string.
@ -2058,7 +2058,7 @@ namespace regex_constants
/** /**
* @brief Searches for a regular expression within a string. * @brief Searches for a regular expression within a string.
* @param s [IN] The string to search. * @param s [IN] The string to search.
* @param e [IN] The regular expressioon to search for. * @param e [IN] The regular expression to search for.
* @param flags [IN] Search policy flags. * @param flags [IN] Search policy flags.
* @retval true A match was found within the string. * @retval true A match was found within the string.
* @retval false No match was found within the string. * @retval false No match was found within the string.
@ -2077,7 +2077,7 @@ namespace regex_constants
/** /**
* @brief Searches for a regular expression within a string. * @brief Searches for a regular expression within a string.
* @param s [IN] A C++ string to search for the regex. * @param s [IN] A C++ string to search for the regex.
* @param m [OUT] The set of regex mnatches. * @param m [OUT] The set of regex matches.
* @param e [IN] The regex to search for in @p s. * @param e [IN] The regex to search for in @p s.
* @param f [IN] The search flags. * @param f [IN] The search flags.
* @retval true A match was found within the string. * @retval true A match was found within the string.
@ -2273,12 +2273,12 @@ namespace regex_constants
regex_token_iterator(); regex_token_iterator();
/** /**
* Constrcts a %regex_token_iterator... * Constructs a %regex_token_iterator...
* @param a [IN] The start of the text to search. * @param a [IN] The start of the text to search.
* @param b [IN] One-past-the-eend of the text to search. * @param b [IN] One-past-the-end of the text to search.
* @param re [IN] The regular expression to search for. * @param re [IN] The regular expression to search for.
* @param submatch [IN] Which submatch to return. There are some * @param submatch [IN] Which submatch to return. There are some
* special values for thsi parameter: * special values for this parameter:
* - -1 each enumerated subexpression does NOT * - -1 each enumerated subexpression does NOT
* match the regular expression (aka field * match the regular expression (aka field
* splitting) * splitting)
@ -2298,9 +2298,9 @@ namespace regex_constants
= regex_constants::match_default); = regex_constants::match_default);
/** /**
* Constrcts a %regex_token_iterator... * Constructs a %regex_token_iterator...
* @param a [IN] The start of the text to search. * @param a [IN] The start of the text to search.
* @param b [IN] One-past-the-eend of the text to search. * @param b [IN] One-past-the-end of the text to search.
* @param re [IN] The regular expression to search for. * @param re [IN] The regular expression to search for.
* @param submatches [IN] A list of subexpressions to return for each * @param submatches [IN] A list of subexpressions to return for each
* regular expression match within the text. * regular expression match within the text.
@ -2316,9 +2316,9 @@ namespace regex_constants
= regex_constants::match_default); = regex_constants::match_default);
/** /**
* Constrcts a %regex_token_iterator... * Constructs a %regex_token_iterator...
* @param a [IN] The start of the text to search. * @param a [IN] The start of the text to search.
* @param b [IN] One-past-the-eend of the text to search. * @param b [IN] One-past-the-end of the text to search.
* @param re [IN] The regular expression to search for. * @param re [IN] The regular expression to search for.
* @param submatches [IN] A list of subexpressions to return for each * @param submatches [IN] A list of subexpressions to return for each
* regular expression match within the text. * regular expression match within the text.