T
Tony Johansson
Hello!!
Assume I have a handle body pattern with classes called Handle and Body.
In the Body class I store one int value for example 7 or some other integer
value.
In the Handle class I have a pointer to the Body class.
If a want to create a STL container of List with the following
declaration List <Handle <Body> > list
The list contains nodes with handles that contains a pointer to Body.
In the constructor of class Handle I create dynamically an object of class
Body so I have a pointer to a created Body object in class Handle.
So in main I instansiate an object of class Handle
Can somebode give me a hint how do I write if I want to store this Handle
object called handle in the STL created List called list. I have to use some
STL operation or Algoritm.
//Tony
Assume I have a handle body pattern with classes called Handle and Body.
In the Body class I store one int value for example 7 or some other integer
value.
In the Handle class I have a pointer to the Body class.
If a want to create a STL container of List with the following
declaration List <Handle <Body> > list
The list contains nodes with handles that contains a pointer to Body.
In the constructor of class Handle I create dynamically an object of class
Body so I have a pointer to a created Body object in class Handle.
So in main I instansiate an object of class Handle
Can somebode give me a hint how do I write if I want to store this Handle
object called handle in the STL created List called list. I have to use some
STL operation or Algoritm.
//Tony