Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r48988 - sandbox/SOC/2006/tree/trunk/boost/tree/detail/algorithm/iterator
From: ockham_at_[hidden]
Date: 2008-09-28 09:05:23


Author: bernhard.reiter
Date: 2008-09-28 09:05:22 EDT (Sun, 28 Sep 2008)
New Revision: 48988
URL: http://svn.boost.org/trac/boost/changeset/48988

Log:
Slight optimisation.
Text files modified:
   sandbox/SOC/2006/tree/trunk/boost/tree/detail/algorithm/iterator/_order.hpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: sandbox/SOC/2006/tree/trunk/boost/tree/detail/algorithm/iterator/_order.hpp
==============================================================================
--- sandbox/SOC/2006/tree/trunk/boost/tree/detail/algorithm/iterator/_order.hpp (original)
+++ sandbox/SOC/2006/tree/trunk/boost/tree/detail/algorithm/iterator/_order.hpp 2008-09-28 09:05:22 EDT (Sun, 28 Sep 2008)
@@ -29,7 +29,8 @@
 iterator<Cursor>
 begin(Cursor c)
 {
- return iterator<Cursor>(first(c));
+ to_first(c);
+ return iterator<Cursor>(c);
 }
 
 /**
@@ -42,7 +43,8 @@
 iterator<Cursor>
 end(Cursor c)
 {
- return iterator<Cursor>(last(c));
+ to_last(c);
+ return iterator<Cursor>(c);
 }
 
 /// Reverse iterators


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk