An easy example of the use of RHashMap ?
| Wed, 2007-11-07 11:29 | |
|
Hi everyone ! It is possible, if I am not wrong, to specify any type of key and value ? Because I have some compilation errors : ')' expectedWhat should I do in order to create this object ? |
|






Forum posts: 672
R classes are not allocated from heap (there is a very rare exception to this though). So do not try to do it with RHashMap.
The exact reason for your problem is that new (ELeave) returns a pointer, but your myMap is an object, not a pointer.
Forum posts: 6
Ah, ok, it works when using a pointer.
.
Thanks
Forum posts: 6
Just for infomation: Do you know how efficient is the use of RHashMap ?
I mean, is using InsertL consuming a lot of time, is the access time to an element through the method FindL efficient ?
Thx in advance !