|
Can we use the ADTs implemented as part of libmtm.a static library? |
No. In case you need an internal ADT to be contained inside the ordered map, you will have to implement it yourself.
|
What should mapPut and mapRemove return when NULL pointers are passed as key and/or data? |
MAP_NULL_ARGUMENT
|
What do you mean when you say that the iterator value is "undefined" after calling a function? |
When the iterator value is said to be undefined after calling some function, the user should not assume anything about the iterator, meaning you do not have to guarantee anything regarding its value, and you are allowed to modify it as you want. This came to simplify things, so do not overthink it.
|
What should happen when the user calls mapPut for a key that already exists? |
The data for the key should be replaced with the new given one, and the function should return MAP_SUCCESS.
|
Should mapGet return the element itself, or a copy of it? |
mapGet should return the element itself.
|
|