the compiler, optimizers and linker can omit and / or reduce this information. every mature tool probably has options specific to eliminating dead code.
with templates, the code cannot actually be created in the first place (except for the instance).
Of course, not all of this will be removed in each scenario, however (rtti is a silent killer). a little caution and testing using build settings can greatly help you reduce the size of binary files and dead code.
source share