4 ms·
As mentioned in another comment, the use of 'auto' isn't just to shorten an unwieldy type name. > The primary use-case of auto returns is for templated functio
by cheepin 12y ago
As mentioned in another comment, the use of 'auto' isn't just to shorten an unwieldy type name.
> The primary use-case of auto returns is for templated functions where the return type depends on the thing passed in.
- dkhenry 12y agoNormally I feel the c++ standards committee has great ideas, however this is not one of them. If you want templated lambdas then you should use templates.