Ignore:
Timestamp:
Jul 17, 2008, 12:36:23 AM (13 years ago)
Author:
Peter
Message:

working on #363

File:
1 edited

Legend:

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

    r1379 r1380  
    2424  02111-1307, USA.
    2525*/
     26
     27#include "iterator_traits.h"
     28
     29#include <vector>
    2630
    2731namespace theplu {
     
    113117
    114118
     119  /**
     120     Specialization for std::vector<DataWeight>::iterator
     121   */
     122  template<>
     123  struct weighted_iterator_traits<std::vector<DataWeight>::iterator> {
     124    /**
     125       iterator to vector<DataWeight> is weighted
     126    */
     127    typedef weighted_iterator_tag type;
     128  };
     129
     130
     131  /**
     132     Specialization for std::vector<DataWeight>::const_iterator
     133   */
     134  template<>
     135  struct weighted_iterator_traits<std::vector<DataWeight>::const_iterator> {
     136    /**
     137       const_iterator to vector<DataWeight> is weighted
     138    */
     139    typedef weighted_iterator_tag type;
     140  };
     141
    115142}}} // of namespace utility, yat, and theplu
    116143
Note: See TracChangeset for help on using the changeset viewer.