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 » Map with unique keys and transfer semantics?
Re: Map with unique keys and transfer semantics? [message #46481 is a reply to message #46473] Sun, 15 May 2016 09:11 Go to previous messageGo to previous message
Infausto is currently offline  Infausto
Messages: 28
Registered: June 2008
Promising Member
Smart as simple. Good tip, Lance. Now, according to documentation, the AMap<class K, class T, class V, class HashFn>::FindAdd() method returns negative if the key is not found. I suppose that de docs are outdated because names a param that is no there:
int FindAdd(const K& k)
...
x               Key to find.
h               Precomputed hash value.
Return value    Position of element or a negative value if element is not in AMap.

http://www.ultimatepp.org/src$Core$AMap$en-us.html

Anyway, many thanks!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problems with AddPick operator| in Vector
Next Topic: Run a slow process in another thread to not block GUI
Goto Forum:
  


Current Time: Mon May 13 15:59:54 CEST 2024

Total time taken to generate the page: 0.01967 seconds