Re:The use of ‘class’ for things that should be simple free ...
by spacechild1 on Sunday May 29, 2022 @04:04PM
(#31552401)
> and only if you're very lucky the compiler will condense this down to the same few dozen lines of actually needed code
The code consists almost entirely of templates and inline functions and every modern C++ compiler will optimize that away. In a release build there is basically no overhead compared to using raw pointers.
The code consists almost entirely of templates and inline functions and every modern C++ compiler will optimize that away. In a release build there is basically no overhead compared to using raw pointers.