Chapter Summary
C++ provides several specialized facilities that are tailored to particular kinds of problems.
Some applications need to take control of how memory is allocated. They can do so by defining their own versions—either class specific or global—of the library operator new and operator delete functions. If the application defines its own versions of these functions, new and delete expressions will use the application-defined version.
Some programs need to directly interrogate the dynamic type of an object at run time. Run-time type identification (RTTI) provides language-level support for this kind of programming. RTTI applies only to classes that define virtual functions; type information for types that do not define virtual functions ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access