Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 14261
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: Wed Jun 04 17:59:39 CEST 2025

Total time taken to generate the page: 0.36752 seconds