Analysis of information sources in references of the Wikipedia article "C++" in English language version.
On occasion you will read or hear someone talking about C++ templates causing code bloat. I was thinking about it the other day and thought to myself, "self, if the code does exactly the same thing then the compiled code cannot really be any bigger, can it?" [...] And what about compiled code size? Each were compiled with the command g++ <filename>.cpp -O3. Non-template version: 8140 bytes, template version: 8028 bytes!
the next standard after C++17 will be C++20
'\n'
rather than std::endl
. Also see Can I write "void main()"? Archived 2 July 2020 at the Wayback Machine for an explanation of the implicit return 0;
in the main
function. This implicit return is not available in other functions.'\n'
rather than std::endl
. Also see Can I write "void main()"? Archived 2 July 2020 at the Wayback Machine for an explanation of the implicit return 0;
in the main
function. This implicit return is not available in other functions.the next standard after C++17 will be C++20
On occasion you will read or hear someone talking about C++ templates causing code bloat. I was thinking about it the other day and thought to myself, "self, if the code does exactly the same thing then the compiled code cannot really be any bigger, can it?" [...] And what about compiled code size? Each were compiled with the command g++ <filename>.cpp -O3. Non-template version: 8140 bytes, template version: 8028 bytes!