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
payload() will return an Integer but why reinterpret_cast<char *>(node) - payload() ??Code:static inline Node *concrete(QMapData::Node *node) { return reinterpret_cast<Node *>(reinterpret_cast<char *>(node) - payload()); }
does reinterpret_cast returns an integer ??
and why cast an Integer to a pointer to an object ??



LinkBack URL
About LinkBacks


