Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ auto type specifier compile time

Tags:

c++

c++11

auto

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.

like image 824
Ugnius Malūkas Avatar asked Jul 12 '26 11:07

Ugnius Malūkas


1 Answers

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.

like image 132
Bathsheba Avatar answered Jul 13 '26 23:07

Bathsheba



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!