1 #ifndef _theplu_yat_utility_weight_iterator_
2 #define _theplu_yat_utility_weight_iterator_
26 #include "iterator_traits.h"
28 #include <boost/concept_check.hpp>
29 #include <boost/iterator/iterator_adaptor.hpp>
30 #include <boost/type_traits/remove_reference.hpp>
60 template<
typename Base>
62 :
public boost::iterator_adaptor<
65 , typename boost::remove_reference<typename iterator_traits<Base>::weight_reference>::type
67 , typename iterator_traits<Base>::weight_reference
80 BOOST_CONCEPT_ASSERT((boost::InputIterator<Base>));
89 BOOST_CONCEPT_ASSERT((boost::InputIterator<Base>));
100 template<
typename B2>
102 typename boost::enable_if_convertible<B2, Base>::type* = 0 )
123 template<
typename Base>
Definition: iterator_traits.h:412
iterator_traits< Base >::weight_reference operator*(void) const
Definition: WeightIterator.h:110
WeightIterator< Base > weight_iterator(Base base)
convenient function to create WeightIterator
Definition: WeightIterator.h:124
WeightIterator(Base b)
Constructor from Base iterator.
Definition: WeightIterator.h:86
traits::weight_reference weight_reference
Definition: iterator_traits.h:435
WeightIterator.
Definition: WeightIterator.h:61
WeightIterator(WeightIterator< B2 > other, typename boost::enable_if_convertible< B2, Base >::type *=0)
Conversion constructor.
Definition: WeightIterator.h:101
WeightIterator(void)
Default Constructor.
Definition: WeightIterator.h:77