c++ - inline virtual function -


In C ++, my understanding is that the virtual function can be underlined, but in general, The signal is ignored. It seems that inline virtual functions do not matter too much.

Is that correct?

Can anyone make a case in which an inline virtual function is good?

By having this happen, a virtual function call can only be generated inline if the compiler can determine the actual type for which the function will be used. , Instead it should be something derived from Class X or X.

An inline virtual function is understood in primary time, if you have a performance critical position, and know that a class will often be used in a manner that determines the compiler for the actual type (And optimizes the call through at least one target compiler pointer)


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -