3 ms·
C++11 is almost 11 years now, you no longer have to enter the type twice. Use auto to tell the compiler to infer the type.
by not2b 5y ago
C++11 is almost 11 years now, you no longer have to enter the type twice. Use auto to tell the compiler to infer the type.
- Zababa 5y agoMy whole point is that it wasn't feasible 12 years ago. Java 10 (which came with var) was released in 2018.