Quick Q: Is ‘auto const’ and ‘const auto’ the same?

Save to:
Instapaper Pocket Readability

Quick A: yes

Recently on SO:

Is 'auto const' and 'const auto' the same?

The const qualifier applies to the type to the immediate left unless there is nothing to the left then it applies to the type to the immediate right. So yup it's the same.

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.