Subscribe to:
Post Comments (Atom)
About
Follow Us
Popular Posts
-
An interesting consequence of decay related rules of pointers and references is that seemingly correct C++ code fails to compile. We hav...
-
pointer cause decay, references do not. Decay means loss of type information. In C and C++, an array name 'decays' to pointer to t...
-
Reading entire file in one go. Solution 1: std::ifstream in("circle.cc"); std::istreambuf_iterator < char > begin(in), e...
-
A "thunk" appears to be an overloaded term in computer science. Use of the word "thunk" goes back to Algol 60 implementa...
-
Double Checked Locking Pattern (DCLP) is used to initialize singleton only once in a multithreaded application and also to avoid cost of acq...
-
I love C++ programming language for its power and complexity!! To me, its enormity and complexity has been an incessant source of different ...
-
Some syntax clarification: This is a short syntax tutorial for upcoming posts. int *p; // a pointer to an integer int &p; // a refer...
-
The canonical form of overloaded pre-increment and post-increment operators for class Foo are declared in the following way in C++. /// P...
-
C++ programming laguage is undergoing interesting language changes. The delegating constructor is a useful new addition which changes the ...
-
Always have two overloaded versions of functions that take char * and const char * parameters. Declare (but don't define if not needed)...
