LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   list<type> how can I make type be a pointer? (https://www.linuxquestions.org/questions/programming-9/list-type-how-can-i-make-type-be-a-pointer-330711/)

exodist 06-05-2005 10:24 PM

list<type> how can I make type be a pointer?
 
I need a linked list of items, but they have to be pointers, the items need to exist in other places, and they need to be placed in the list after the fact, I can't just copy them into the list then change everything else to access the memory address within the pointer.

I tried:

list<*type> but that does not work.

enemorales 06-06-2005 05:15 AM

I think it has to be

Code:

list<type *>

exodist 06-06-2005 08:40 AM

yes, I fixed it, thanx.


All times are GMT -5. The time now is 08:24 AM.