STL List
-
I have created a STL List customer_list with several detail properties. all works fine. However I now need to store a list of string for each customer. I have added a STL List string_list to the customer object which is accessible the problem is the data in the list is not persisted. Is it possible to have a list within a list? what could be the reason for the list not persisting the data? Regards Mark
-
I have created a STL List customer_list with several detail properties. all works fine. However I now need to store a list of string for each customer. I have added a STL List string_list to the customer object which is accessible the problem is the data in the list is not persisted. Is it possible to have a list within a list? what could be the reason for the list not persisting the data? Regards Mark
Although it is possible to have a
list
within alist
, it would help if you could post some relevant code. You should use the STLvector
class instead of alist
if you do not do insertions and deletions from the middle of thelist
.«_Superman_» _I love work. It gives me something to do between weekends.
-
I have created a STL List customer_list with several detail properties. all works fine. However I now need to store a list of string for each customer. I have added a STL List string_list to the customer object which is accessible the problem is the data in the list is not persisted. Is it possible to have a list within a list? what could be the reason for the list not persisting the data? Regards Mark
-
I have created a STL List customer_list with several detail properties. all works fine. However I now need to store a list of string for each customer. I have added a STL List string_list to the customer object which is accessible the problem is the data in the list is not persisted. Is it possible to have a list within a list? what could be the reason for the list not persisting the data? Regards Mark
If elements in your STL list are more than just a simple type, you can wrap it up into an object, and just have STL list of objects. I used it in a few places in the following article: ProSysLib: Dissecting the Process[^]