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

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: Wed Sep 16 22:59:46 GMT+2 2026

Total time taken to generate the page: 0.00532 seconds