#ifndef FIELDH #define FIELDH #include #include using namespace std; template inline const T& field(const void *& p, const char *s = 0) { const T *const pt = reinterpret_cast(p); cout << setw(10) << p << ": " << setw(7) << *pt; if (s != 0) { cout << " (" << s << ")"; } cout << "\n"; p = pt + 1; return *pt; } #endif