<p dir="ltr">If you don't care about efficiency you can push (or at least insert) at the front of a(small or otherwise) vector.</p>
<div class="gmail_quote">On Nov 3, 2013 3:32 AM, "Rekha R" <<a href="mailto:rekharamapai@nitc.ac.in">rekharamapai@nitc.ac.in</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div>Hi,<br><br></div>I am writing an analysis which requires creating worklist of basic blocks. The worklist should be in FIFO order. I checked SmallVector (and similar others) and found out this is working in LIFO order when I use the functions push_back and pop_back_val to insert and delete elements in the worklist.<br>


<br></div>Can someone suggest an appropriate DS to implement my worklist. Note: I am not concerned about efficiency here.<br clear="all"><div><div><div><br>-- <br>Regards,<br>Rekha
</div></div></div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div>