LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   C++ question in linux (https://www.linuxquestions.org/questions/linux-software-2/c-question-in-linux-26299/)

kyoavk 07-22-2002 08:56 AM

C++ question in linux
 
I have list name PartialList:

std::list<Partial>PartialList;

Now I want to make pointer to the beginning of the list. How should I define this pointer?

_______________ ListPointer = PartialList.begin();


Thanks Yoav

Mik 07-22-2002 09:44 AM

You would create an iterator for that:

std::list<Partial>::iterator it = PartialList.begin();


All times are GMT -5. The time now is 10:05 PM.