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 » The right container
Re: The right container [message #51236 is a reply to message #51177] Sun, 24 February 2019 11:30 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Sat, 16 February 2019 17:54
I wanted to know the right U++ container for this.
Data type could be int or double.

Container<Data type> dat;

dat.SetCount(300);
dat[23] = 12;
dat.FindAdd(34);

Thank you.


I would be helpful if you have explained what is supposed to happen at each point. Esp. what you expect from SetCount and FindAdd...

(But in general, I would say use Index. That really IS Vector with search...)

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Why there is no Index::Add(T&&)?
Next Topic: [SOLVED] Purpose of HttpRequest::SSLCertificate
Goto Forum:
  


Current Time: Sun May 05 22:02:16 CEST 2024

Total time taken to generate the page: 0.02443 seconds