Search code examples
c++c++11auto

C++ auto type specifier compile time


Just for curiosity:

is it big difference in compile time if auto type specifiers have been used?

I haven't found any information regarding that.


Solution

  • As the compiler is already aware of the static type of an expression, you can expect the effect on compilation time to be minimal, if any.

    Probably of the same order as using decltype or sizeof.