Is there a metafunction f that maps an iterator to its corresponding const_iterator?
I.e. f<std::vector<T>::iterator>::type should yield std::vector<T>::const_iterator.
I am not aware of such a metafunction.
Not all iterators have a corresponding const_iterator. E.g. insert_iterator. So such a metafunction would need to decide what it is going to do in such cases.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With