dbj.org
c++ How to implement self referencing type - dbj( org );
What is it? A type (struct or class) whose instance contains one or more references to the instance of the same type. A sketch: // Self Referencing type struct SR { char state; const SR & ref; }; Why would anybody do this? Is another question. After I implement this, I might give some valid … Continue reading "c++ How to implement self referencing type"