Liste des Groupes | Revenir à cl c |
On 27/08/2024 10:36, Bonita Montero wrote:
C++ is efficient and abstract in one.
Any simple one-line claim here is clearly going to be wrong.90% of the C++-abstractions are zero-cost abstractons.
C++ code can be efficient, or abstract, or both, or neither.Of course it can. Imagine functional programming with a std::sort.
You have to accept exceptions with C++ since there are a lot of places
where C++ throws a bad_alloc or system_error.
Incorrect. Like most low-level or systems programmers using C++, I have exceptions disabled and never use them.You won't be able to change the runtime's behaviour with that. The
Incorrect.I just measured the tim of a ...
Virtual function overhead will sometimes be worth the cost, and in some circumstances it can be less than more manual dispatch methods. But it is not cost-free, and the overhead can most certainly be relevant if it is used inappropriately.If the destination of the dispatch varies the overhead is nearly the
Les messages affichés proviennent d'usenet.