[multiple changes]
2004-11-19 Chris Jefferson <chris@bubblescope.net> * include/bits/stl_list.h (list::back, list::back const): Don't decrement temporary. 2004-11-19 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_deque.h (deque::front, deque::front const, deque::back, deque::back const): Slightly tweak for stylistic consistency. From-SVN: r90917
This commit is contained in:
parent
9716416bf1
commit
f4e5280b48
|
@ -1,3 +1,14 @@
|
||||||
|
2004-11-19 Chris Jefferson <chris@bubblescope.net>
|
||||||
|
|
||||||
|
* include/bits/stl_list.h (list::back, list::back const):
|
||||||
|
Don't decrement temporary.
|
||||||
|
|
||||||
|
2004-11-19 Paolo Carlini <pcarlini@suse.de>
|
||||||
|
|
||||||
|
* include/bits/stl_deque.h (deque::front, deque::front const,
|
||||||
|
deque::back, deque::back const): Slightly tweak for stylistic
|
||||||
|
consistency.
|
||||||
|
|
||||||
2004-11-18 Paolo Carlini <pcarlini@suse.de>
|
2004-11-18 Paolo Carlini <pcarlini@suse.de>
|
||||||
|
|
||||||
* testsuite/26_numerics/numeric/sum_diff.cc: Use VERIFY.
|
* testsuite/26_numerics/numeric/sum_diff.cc: Use VERIFY.
|
||||||
|
|
|
@ -970,7 +970,7 @@ namespace _GLIBCXX_STD
|
||||||
*/
|
*/
|
||||||
reference
|
reference
|
||||||
front()
|
front()
|
||||||
{ return *this->_M_impl._M_start; }
|
{ return *begin(); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a read-only (constant) reference to the data at the first
|
* Returns a read-only (constant) reference to the data at the first
|
||||||
|
@ -978,7 +978,7 @@ namespace _GLIBCXX_STD
|
||||||
*/
|
*/
|
||||||
const_reference
|
const_reference
|
||||||
front() const
|
front() const
|
||||||
{ return *this->_M_impl._M_start; }
|
{ return *begin(); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a read/write reference to the data at the last element of the
|
* Returns a read/write reference to the data at the last element of the
|
||||||
|
@ -987,7 +987,7 @@ namespace _GLIBCXX_STD
|
||||||
reference
|
reference
|
||||||
back()
|
back()
|
||||||
{
|
{
|
||||||
iterator __tmp = this->_M_impl._M_finish;
|
iterator __tmp = end();
|
||||||
--__tmp;
|
--__tmp;
|
||||||
return *__tmp;
|
return *__tmp;
|
||||||
}
|
}
|
||||||
|
@ -999,7 +999,7 @@ namespace _GLIBCXX_STD
|
||||||
const_reference
|
const_reference
|
||||||
back() const
|
back() const
|
||||||
{
|
{
|
||||||
const_iterator __tmp = this->_M_impl._M_finish;
|
const_iterator __tmp = end();
|
||||||
--__tmp;
|
--__tmp;
|
||||||
return *__tmp;
|
return *__tmp;
|
||||||
}
|
}
|
||||||
|
|
|
@ -707,7 +707,11 @@ namespace _GLIBCXX_STD
|
||||||
*/
|
*/
|
||||||
reference
|
reference
|
||||||
back()
|
back()
|
||||||
{ return *(--end()); }
|
{
|
||||||
|
iterator __tmp = end();
|
||||||
|
--__tmp;
|
||||||
|
return *__tmp;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a read-only (constant) reference to the data at the last
|
* Returns a read-only (constant) reference to the data at the last
|
||||||
|
@ -715,7 +719,11 @@ namespace _GLIBCXX_STD
|
||||||
*/
|
*/
|
||||||
const_reference
|
const_reference
|
||||||
back() const
|
back() const
|
||||||
{ return *(--end()); }
|
{
|
||||||
|
const_iterator __tmp = end();
|
||||||
|
--__tmp;
|
||||||
|
return *__tmp;
|
||||||
|
}
|
||||||
|
|
||||||
// [23.2.2.3] modifiers
|
// [23.2.2.3] modifiers
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue