Defining a node of a linked-list using std::pair sounds as simple as drinking a Starbucks's white chocolate mocha. But it really isn...
Defining a node of a linked-list using std::pair sounds as simple as drinking a Starbucks's white chocolate mocha. But it really isn...
I thought it would be interesting to discuss a subtle C/C++ interview question I learned recently. Question is deceptively simple: "Can...
A new writeup on Non-Virtual Interface (NVI) idiom has been written on More C++ Idioms wikibook. In the writeup, I discuss the relationshi...
The open-content wikibook "More C++ Idioms" has grown quite a bit from it inception. Whenever I get time, I try to add more conten...
Dear readers, Thanks for your continued interest in the C++ Truths blog and a steady stream of feedback comments. For quite some time now, I...
I recently realized that function template overloading and function template specialization can interact with each other in complex ways giv...
Sometimes it is useful to be able iterate over all the elements of a std::map using standard algorithms like std::copy(), std::count(), std:...
For quite some time now, I am hoping to come across a book on modern C++ idiom as comprehensive as the Purple book by James Coplien! Finally...