Is it possible to specialize an Iterator template parameter by its value_type?
I have a function with the following prototype.
template<typename InputIterator>
void f(InputIterator first, InputIterator last);
And I want to handle specially if InputIterator::value_type is SomeSpecificType.
You can use some intermediate structs to get the partial template specialisation that you need. Something like this should do the trick