Although you're better off avoiding the auto if you're using a non-templated function.
That way your IDE will know what type it is, and you'll get a nice compiler error message if someone changes the type of v without telling you.
Although you're better off avoiding the auto if you're using a non-templated function.
That way your IDE will know what type it is, and you'll get a nice compiler error message if someone changes the type of v without telling you.