Changeset 909 for trunk/yat/utility


Ignore:
Timestamp:
Sep 29, 2007, 1:49:05 AM (14 years ago)
Author:
Peter
Message:

using weighted_iterator_traits, closes #151

Location:
trunk/yat/utility
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/IteratorTraits.h

    r908 r909  
    5858  struct weighted_iterator_traits<yat::utility::IteratorWeighted<U,V> > {
    5959    typedef weighted_type type;
    60   }
    61 };
    62 
    63 
     60  };
    6461
    6562}}} // of namespace utility, yat, and theplu
  • trunk/yat/utility/IteratorWeighted.h

    r898 r909  
    77#include <stddef.h>
    88
    9 // namespace std {
    10 //  struct weighted_random_access_iterator_tag
    11 //    : public random_access_iterator_tag {
    12 //  };
    13 // }
    14 
    15 
    169namespace theplu {
    1710namespace yat {
    1811namespace utility {
    19 
    20   struct weighted_random_access_iterator_tag
    21     : public std::random_access_iterator_tag {
    22   };
    2312
    2413  /**
     
    2918  {
    3019  public:
    31     typedef weighted_random_access_iterator_tag iterator_category;
     20    typedef std::random_access_iterator_tag iterator_category;
    3221    typedef double value_type;
    3322    typedef size_t difference_type;
Note: See TracChangeset for help on using the changeset viewer.