3 ms·
OK, yeah, I get it now. so if I defined my own map type (e.g. orderedmap[T] that kept things in the order they were added) then I'd need to write code for the
by marcus_holmes 6y ago
OK, yeah, I get it now.
so if I defined my own map type (e.g. orderedmap[T] that kept things in the order they were added) then I'd need to write code for the [] operator to access an element, is that right?
I guess I'm not really sure how that differs from declaring orderedmap(T) (as it is in the proposal). Why do I need to overload one and not the other?