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: 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.
|
|
|
Goto Forum:
Current Time: Sun May 12 20:09:58 CEST 2024
Total time taken to generate the page: 0.03198 seconds
|