By now everyone should know std::vector<t>
beats std::list</t><t>
at pretty much everything.
But splicing one container into another is std::list
‘s specialty.
By now everyone should know std::vector<t>
beats std::list</t><t>
at pretty much everything.
But splicing one container into another is std::list
‘s specialty.
Sometimes viewing the binary representation of an integer is nice.
Sometimes I do silly things like waste time solving problems people pose. The paper explains the rest.
As a humorous-leaning answer to an unorthodox question, I invented the auto_cast
utility. It looks abusive at first, but is it really so bad? It ended up making a small bit of noise on StackOverflow, so it may not be as bad as it looks.
What is this idiom and when should it be used? Which problems does it solve? Will the idiom change when C++0x is used?
This is a copy of my popular Q&A on StackOverflow.