I just saw a tiny method called concrete which is an one line function but I am not able to understand what it does but I am Interested.
http://cep.xor.aps.anl.gov/software/...ce.html#l00130
Look at Line 00130
Code:
static inline Node *concrete(QMapData::Node *node) {
return reinterpret_cast<Node *>(reinterpret_cast<char *>(node) - payload());
}
payload() will return an Integer but why reinterpret_cast<char *>(node) - payload() ??
does reinterpret_cast returns an integer ??
and why cast an Integer to a pointer to an object ??