template<class T, class InputIterator>
struct fesa::Functors::CompareToReferenceOrder< T, InputIterator >
Functor that compares objects to a reference ordering provided by two iterators. The objects in the range of the iterators must not be modified while this functor is used, otherwise results are unpredictable. InputIterator objects must be relationally comparable (i.e. operator< must be defined). Only random access iterators have this property.
- Template Parameters
-
T | the type of objects to be compared |
InputIterator | the type of the random access iterator that contains the reference order of objects. |