With real values, do you mean like each index has a value of it's own, and thus for instance (<1:3,1:17>) would be possible?
how I've intended the operations. Opinions are welcome; now is a good time to affect it.
That's what I thought. Or rather, the sooner things are determined and fixed, the better. :)
/ Mirar
Previous text:
2003-02-06 16:07: Subject: Xor
I'm glad that the index operator on multisets only accesses one element even if there are several with the same index. That makes it easier to extend it to hold real values.
In the new implementation (which has a well defined order), the indexing operations (including m_delete) always operate on the last element with the given index. I thought that to be most useful since += can be used to add elements which might be duplicates and the normal indexing operations will default to the last of them. (There will of course also be other utility functions to set and get all values that share the same index.)
See the comment blurbs in rbtree.h and multiset.h for more details of how I've intended the operations. Opinions are welcome; now is a good time to affect it.
/ Martin Stjernholm, Roxen IS