yat  0.21pre
Public Types | List of all members
theplu::yat::utility::detail::weighted_iterator::Traversal< DataIterator, WeightIterator > Class Template Reference

#include <yat/utility/WeightedIterator.h>

Public Types

typedef boost::mpl::if_< boost::is_convertible< T1, T2 >, T2, T1 >::type type
 

Detailed Description

template<typename DataIterator, typename WeightIterator>
class theplu::yat::utility::detail::weighted_iterator::Traversal< DataIterator, WeightIterator >

Determines which traversal concept (see boost iterator traversal concept) the WeightedIterator is marked as. The class looks at iterator_traversal from DataIterator and WeightIterator and returns the simplest of them (e.g. if DataIterator is bidirectional_iterator and WeightIterator is forward_iterator, then forward_iterator will be returned).

Member Typedef Documentation

◆ type

template<typename DataIterator , typename WeightIterator >
typedef boost::mpl::if_< boost::is_convertible<T1, T2>, T2, T1>::type theplu::yat::utility::detail::weighted_iterator::Traversal< DataIterator, WeightIterator >::type
Returns
the least advanced type if T1 is convertible to T2 (T1 is more advanced) return T2

The documentation for this class was generated from the following file:

Generated on Wed Jan 25 2023 03:34:30 for yat by  doxygen 1.8.14