Subscribe to:
Post Comments (Atom)
About
Follow Us
Popular Posts
-
In C++, default arguments of global scope functions can be changed easily. Typically we use a constant expression as a default argument. C...
-
A "thunk" appears to be an overloaded term in computer science. Use of the word "thunk" goes back to Algol 60 implementa...
-
Conventionally, std::cin, std::cout are buffererd and std::cerr is not buffered. Unbuffered streams are written to device immediately. In ge...
-
A very nice collection of wrappers is available on Stackoverflow . 1. Copy everything in the a container to std::cout (e.g. std::set<st...
-
It is a C++ idiom in which inheritance and template type parameters are cleverly integrated to generate flexible types at compile-time. In C...
-
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...
-
Reading entire file in one go. Solution 1: std::ifstream in("circle.cc"); std::istreambuf_iterator < char > begin(in), e...
-
C++0x standard will expand the C++ standard library in various ways. The C++ Standardization Committee has identified 14 new sets of library...
-
An interesting consequence of decay related rules of pointers and references is that seemingly correct C++ code fails to compile. We hav...
