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 » Community » Newbie corner » Upp::Vector FindIndex by value of Object
Re: Upp::Vector FindIndex by value of Object [message #52626 is a reply to message #52553] Thu, 31 October 2019 19:43 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Xemuth wrote on Tue, 22 October 2019 11:12
Hello community,

I'm looking for something like this :
	Vector<String> m;
	String& find = m.GetIndex([](String toFind,String inMyVector){return toFind.IsEqual(inMyVector);});

It allow me to retrieve index of object by calling lambda function.
Do it exist ?


int i = FindIndex(m, toFind);

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [solved]An U++ equivalent of bzero ? (if not a sin)
Next Topic: How to include files .h or .cpp as external library?
Goto Forum:
  


Current Time: Fri Apr 26 21:53:08 CEST 2024

Total time taken to generate the page: 0.03404 seconds