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 #46486 is a reply to message #46481] Sun, 15 May 2016 14:21 Go to previous message
Lance is currently offline  Lance
Messages: 527
Registered: March 2007
Contributor
Suppose the document is right, ie. FindAdd returns negative if it added a new entry, you can simply add a call to abs(), or you can even compose a method doing what the current FindAdd is doing. The code and logic is open, the "key, value" are protected memebers of AMap so that inherited classes can access freely. Not much work added really.
 
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: Sun May 12 20:09:58 CEST 2024

Total time taken to generate the page: 0.03198 seconds