It would be more intuitive to implement the get() and set() functions
using operator[], as in the existing vector class. Yes?


Yes. At first it didn't feel right to first insert the default and then copy the new value as in "o[index] = new" if the index didn't exist yet. However, this is probably a minor issue and the code got so much cleaner and shorter, so I changed it.

Vincent

Reply via email to