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 » U++ Library support » U++ Core » Preferred way to access VectorMap
Preferred way to access VectorMap [message #35039] Sun, 01 January 2012 15:36 Go to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

I have a
VectorMap<int, myclass> V;

I can retrieve the values of V with:

1) V[i].myclass_method...

2) myclass& a = V.Get(i);
a.myclass_method...

Which is the preferred way? Which is the faster?
Thanks,
Luigi
 
Read Message
Read Message
Read Message
Previous Topic: Small fix for Find in Algo.h
Next Topic: Date& operator++
Goto Forum:
  


Current Time: Mon Apr 29 16:17:37 CEST 2024

Total time taken to generate the page: 0.02448 seconds