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 #51182 is a reply to message #51180] Sun, 17 February 2019 18:03 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3437
Registered: August 2008
Senior Veteran
Thank you Novo. Is what I have done.
This array is filled from text files with different formats. For some formats the Vector is best and for others Index is best.
I have used Vector, adding a FindAdd() function.

template <class Range, class V>
void FindAdd(Range& r, const V& value, int from = 0)
{
	for(int i = from; i < r.GetCount(); i++)
		if(r[i] == value) 
			return;
	r.Add(value);
}


Best regards
IƱaki
 
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: Tue Jun 10 07:53:06 CEST 2025

Total time taken to generate the page: 0.03650 seconds