Hacker News new | past | comments | ask | show | jobs | submit login

Even if not inlined at -O0, when instantiated for a custom some_type, the standard library .so won't contain any code for it, everything will be in the application binary.



Depends on the implementation of helper functions and if external templates are being used.


extern templates won't help for user defined types of course as the standard library couldn't possibly have instantiations for them :).

Some non template helpers might be improved of course.


They help for common types like std::string.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: