Is final used for optimization in C++?
Is final used for optimization in C++? It can be, and is. As noted, it is being used already; see here and here showing the generated code for the override with and without final. An optimisation along these lines would relate to the “de-virtualization” of the virtual calls. This is not always immediately affected by … Read more