I have the following struct:
template<typename T>
struct Foo
{
typename T::iterator iter;
};
The expected type:
iteris astd::map<K, V>::iteratorwhenTis deduced asstd::map<K, V>.iteris astd::map<K, V>::const_iteratorwhenTis deduced asconst std::map<K, V>
But my code always get a std::map<K, V>::iterator.
How to achieve the expected implementation?