TECH
C++
traits compile-time algorithm selection templates
iterator tags idiom and compile-time algorithm selection
Subscribe to:
Post Comments (Atom)
About
Follow Us
Popular Posts
-
A "thunk" appears to be an overloaded term in computer science. Use of the word "thunk" goes back to Algol 60 implementa...
-
It is a C++ idiom in which inheritance and template type parameters are cleverly integrated to generate flexible types at compile-time. In C...
-
In C++, default arguments of global scope functions can be changed easily. Typically we use a constant expression as a default argument. C...
-
This is a small part of the discussion going on writing exception safe code in C++ especially for large C++ programs such as ACE/TAO library...
-
Conventionally, std::cin, std::cout are buffererd and std::cerr is not buffered. Unbuffered streams are written to device immediately. In ge...
-
In one of my previous posts I described a few ways of swapping two numbers using xor operation in a sinlge line. The discussion is not corr...
-
Always have two overloaded versions of functions that take char * and const char * parameters. Declare (but don't define if not needed)...
-
Some syntax clarification: This is a short syntax tutorial for upcoming posts. int *p; // a pointer to an integer int &p; // a refer...
-
pointer cause decay, references do not. Decay means loss of type information. In C and C++, an array name 'decays' to pointer to t...
-
An interesting consequence of decay related rules of pointers and references is that seemingly correct C++ code fails to compile. We hav...
