U++ framework
Do not panic. Ask here before giving up.

Home » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » Vector of Vector
Re: Vector of Vector [message #5964 is a reply to message #5955] Thu, 26 October 2006 01:35 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
This is not very effective way to do it (in fact, it is as slow as STL Smile. Much better is to create it "in-place":

Vector< Vector<int> > x;
Vector<int>& n = x.Add();
n.Add(1);
....


Alternatively, you can use AddPick - that one would destroy source Vector avoiding the copy.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Tip: Using FileSel
Next Topic: Groovey
Goto Forum:
  


Current Time: Fri Oct 23 03:42:08 GMT+2 2026

Total time taken to generate the page: 0.00848 seconds