TSglQueLink
An object of this type is embedded within a class T
, so
that any object of type T
or any object of a type derived from
T
can be made part of a singly linked list.
For a class CAnyClass
, insert a declaration for
TSglQueLink
at a suitable point.
class CAnyClass : CBase
{
//... class members
TSglQueLink iLink;
//... class members
};
The declaration of TSglQueLink
can be anywhere within
CAnyClass
, provided that its offset from the beginning of
CAnyClass
is divisible by four.