Re:How well do you know C++ auto type deduction?
by majoe on Monday December 15, 2025 @02:30AM
(#46271420)
I came to like auto over the years, although I also use it sparingly.
Sometimes the concrete types only add visual noise and not much helpful information, e.g. iterators:
auto it = some_container.begin();
Not even once have I wished to know the actual type of the iterator.
auto it = some_container.begin();
Not even once have I wished to know the actual type of the iterator.