<br><br><div class="gmail_quote">2010/2/25 Jed Brown <span dir="ltr">&lt;<a href="mailto:jed@59a2.org">jed@59a2.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Thu, 25 Feb 2010 13:16:56 -0300, Pedro Torres &lt;<a href="mailto:torres.pedrozpk@gmail.com">torres.pedrozpk@gmail.com</a>&gt; wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; There is function that work with Vector object similar to push_back() in<br>
&gt; STL?. If not, which is the best way to deal with this?.<br>
<br>
</div>What are you trying to do?  Vec is not a stack, queue, or dynamically<br>
sized list-like structure, you have to decide what size it is (and it&#39;s<br>
parallel layout) before using it.<br></blockquote><div><br>Well, in my case I have a sequential vector and I&#39;m trying to append one element at the end of the array, without the need of destroy this. So, if I can&#39;t, the procedure would be:<br>
<br>- Get the array of the old vector<br>- Create a new vector with size+1<br>- copy old array in the new array and append the element,<br>- destroy old vector<br><br>There is a better way?<br><br>Thanks a lot!<br><br><br>
Pedro<br><br><br><br><br><br><br><br><br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<font color="#888888"><br>
Jed<br>
</font></blockquote></div><br>