4 ms·
That rules out one of the core use cases that auto was designed for: iterators. std::unordered_map<SomeTemplatedType<A, B>, SomeOtherTemplatedType<C, D>> m
by TheCoelacanth 9y ago
That rules out one of the core use cases that auto was designed for: iterators.
std::unordered_map<SomeTemplatedType<A, B>, SomeOtherTemplatedType<C, D>> map = foo();
std::unordered_map<SomeTemplatedType<A, B>, SomeOtherTemplatedType<C, D>>::iterator it = map.begin();
is much less readable than
std::unordered_map<SomeTemplatedType<A, B>, SomeOtherTemplatedType<C, D>> map = foo();
auto it = map.begin();