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  |
Lance
Messages: 656 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.
|
|
|
Goto Forum:
Current Time: Sun Jun 29 22:38:57 CEST 2025
Total time taken to generate the page: 0.05315 seconds
|