3 ms·
There are other C++11/14 features that improve performance even further that are not mentioned here. For example, automatic type deduction often finds a more co
by hellofunk 10y ago
There are other C++11/14 features that improve performance even further that are not mentioned here. For example, automatic type deduction often finds a more correct type for a variable or iterator than you'd guess on your own, since your guess might require an implicit conversion which might be costly in some cases. Brace initialization can also avoid costly implicit conversions. And using lambdas rather than named functions often leads to automatic inlining, an additional performance benefit.
C++ is a changing language and is doing a good job keeping up the with times, adding high-level features while increasing performance at the same time.