Displaying 2 results from an estimated 2 matches for "af622128e353515efebccad40eae495cb".
2013 Nov 03
0
[LLVMdev] Appropriate DS for implementing worklist
...9;ll get LIFO behavior if you use them in that way
For LIFO you need to either insert at the front and pop from the back or
insert at the back and pop from the front.
You can insert at the front using the insert member function (
http://llvm.org/docs/doxygen/html/classllvm_1_1SmallVectorImpl.html#af622128e353515efebccad40eae495cb)
and passing the begin iterator.
>
> Regards,
> Rekha
>
>
> On Sun, Nov 3, 2013 at 8:31 PM, David Blaikie <dblaikie at gmail.com> wrote:
>
>> If you don't care about efficiency you can push (or at least insert) at
>> the front of a(small or otherwise) ve...
2013 Nov 03
2
[LLVMdev] Appropriate DS for implementing worklist
Thank you David for prompt reply.
I tried with SmallVector. I inserted elements with push_back().
But when I retrieve elements using pop_back_val the elements are returned
in reverse order of insertion (I mean like LIFO order).
I need this to be FIFO order. How to achieve that?
Regards,
Rekha
On Sun, Nov 3, 2013 at 8:31 PM, David Blaikie <dblaikie at gmail.com> wrote:
> If you