Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59329 - sandbox/statistics/iterator/boost/iterator
From: erwann.rogard_at_[hidden]
Date: 2010-01-28 01:25:51


Author: e_r
Date: 2010-01-28 01:25:51 EST (Thu, 28 Jan 2010)
New Revision: 59329
URL: http://svn.boost.org/trac/boost/changeset/59329

Log:
m
Text files modified:
   sandbox/statistics/iterator/boost/iterator/flatten_iterator.hpp | 18 +++++++++++++-----
   1 files changed, 13 insertions(+), 5 deletions(-)

Modified: sandbox/statistics/iterator/boost/iterator/flatten_iterator.hpp
==============================================================================
--- sandbox/statistics/iterator/boost/iterator/flatten_iterator.hpp (original)
+++ sandbox/statistics/iterator/boost/iterator/flatten_iterator.hpp 2010-01-28 01:25:51 EST (Thu, 28 Jan 2010)
@@ -27,7 +27,16 @@
                 typename boost::remove_reference<ref_>::type
>::type val_;
         typedef typename boost::iterator_difference<it_>::type diff_;
+ // TODO category_traversal
     };
+
+ template<typename It>
+ struct flatten_iterator_category_traversal{
+ // TODO
+ // weaker of outer and inner iterator
+
+ };
+
     
         template<
             class It,
@@ -63,7 +72,6 @@
                 public:
                 typedef typename super_::difference_type diff_;
                 typedef typename super_::reference ref_;
-
                         
         explicit flatten_iterator(It b,It e):super_(),b_(b),e_(e){
                 this->update();
@@ -73,8 +81,8 @@
         :super_(that),b_(that.b_),e_(that.e_)
         {
                 if(!this->is_end()){
- nb_ = (that.nb_);
- ne_ = (that.ne_);
+ this->nb_ = (that.nb_);
+ this->ne_ = (that.ne_);
             }
         }
 
@@ -85,8 +93,8 @@
                                 this->b_ = that.b_;
                 this->e_ = that.e_;
                 if(!this->is_end()){
- nb_ = (that.nb_);
- ne_ = (that.ne_);
+ this->nb_ = (that.nb_);
+ this->ne_ = (that.ne_);
                 }
             }
             return (*this);


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