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

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: 14291
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 24 05:22:32 GMT+2 2026

Total time taken to generate the page: 0.00786 seconds