Given a function such as the following:
template<typename ForwardIterator>
void MyFunc(ForwardIterator first, ForwardIterator last) {
...
}
Given that first and last are in the same data structure, how can I check that first is in fact before last in this data structure?