Commit 558ef0f7 by Paolo Carlini Committed by Paolo Carlini

stl_raw_storage_iter.h (class raw_storage_iterator): Adjust template parameter name.

2007-05-04  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_raw_storage_iter.h (class raw_storage_iterator):
	Adjust template parameter name.

From-SVN: r124459
parent 88e6c947
2007-05-04 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_raw_storage_iter.h (class raw_storage_iterator):
Adjust template parameter name.
2007-05-04 Mark Mitchell <mark@codesourcery.com> 2007-05-04 Mark Mitchell <mark@codesourcery.com>
* libsupc++/cxxabi.h (__cxa_atexit): Conditionalize exception * libsupc++/cxxabi.h (__cxa_atexit): Conditionalize exception
......
// -*- C++ -*- // -*- C++ -*-
// Copyright (C) 2001, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
// Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -67,16 +68,16 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -67,16 +68,16 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* This iterator class lets algorithms store their results into * This iterator class lets algorithms store their results into
* uninitialized memory. * uninitialized memory.
*/ */
template <class _ForwardIterator, class _Tp> template <class _OutputIterator, class _Tp>
class raw_storage_iterator class raw_storage_iterator
: public iterator<output_iterator_tag, void, void, void, void> : public iterator<output_iterator_tag, void, void, void, void>
{ {
protected: protected:
_ForwardIterator _M_iter; _OutputIterator _M_iter;
public: public:
explicit explicit
raw_storage_iterator(_ForwardIterator __x) raw_storage_iterator(_OutputIterator __x)
: _M_iter(__x) {} : _M_iter(__x) {}
raw_storage_iterator& raw_storage_iterator&
...@@ -89,17 +90,17 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -89,17 +90,17 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
return *this; return *this;
} }
raw_storage_iterator<_ForwardIterator, _Tp>& raw_storage_iterator<_OutputIterator, _Tp>&
operator++() operator++()
{ {
++_M_iter; ++_M_iter;
return *this; return *this;
} }
raw_storage_iterator<_ForwardIterator, _Tp> raw_storage_iterator<_OutputIterator, _Tp>
operator++(int) operator++(int)
{ {
raw_storage_iterator<_ForwardIterator, _Tp> __tmp = *this; raw_storage_iterator<_OutputIterator, _Tp> __tmp = *this;
++_M_iter; ++_M_iter;
return __tmp; return __tmp;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment