Re: Taking values from Queue
Erik Wikström wrote:
> On 2007-10-18 21:06, Victor Bazarov wrote:
>> Erik Wikstr�m wrote:
>>> On 2007-10-18 20:19, Donos wrote:
>>>> Ok. Like i said, the Queue is declared as,
>>>>
>>>> std::queue<unsigned char> m_RxQueue;
>>>>
>>>> and the data is pushed into Queue using,
>>>>
>>>> m_RxQueue.push(*pBuf++);
>>>>
>>>> Where pBuf is a unsigned char*
>>>>
>>>> ---------------------------------------------
>>>>
>>>> And my question is, Now how can i extract the data back?
>>>>
>>>> If not a Deque::Iterator, what other approach i can use to extract
>>>> data from Queue?
>>> front() and pop(), if they are not enough then a queue is not what
>>> you want.
>> I am really trying hard not to use "RTFM" in my replies, yet they
>> do sometimes trickle through. How do you manage?
>
> I got a lot of spare time at the moment, so I can afford to be patient.
>
You've got a lot more patience than me, alas.
|