I think this question is clear enough. Whether the auto constant will automatically determine the constant or always return a non-constant type, even if there is, for example. two versions of the function (one that returns const , and the other does not).
For the record only, I use const auto end = some_container.end() before my loops, but I don't know if this is required or even different than regular auto .
c ++ c ++ 11 const
rubenvb Feb 21 '11 at 19:48 2011-02-21 19:48
source share