2 ms·
https://en.cppreference.com/w/cpp/language/final https://en.cppreference.com/w/cpp/language/final Final in C++ indicates that the function/class can no longer
by sudosysgen 3y ago
https://en.cppreference.com/w/cpp/language/final https://en.cppreference.com/w/cpp/language/final
Final in C++ indicates that the function/class can no longer be overridden in further child classes. This enables devirtualization as the compiler can then know the function pointer will not change, if it can infer the type at compile time.