dbj.org
c++ How to implement self referencing type
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 typestruct SR { const SR & ref; };Strange and wonderful. Why would anybody do this?Is another question. After I implement