A technique for polymorphic invocation of methods based on the types of many (or all) arguments. Compare to single-dispatch, used in common OO languages, where methods can only be polymorphic in the first argument -- the runtime resolution of a.doSomething(x, y, z) depends only on the type of a.
Questions tagged [multiple-dispatch]
106 questions
0
votes
6 answers
Special interaction between derived objects (i.e. mutiple dispatch)
So, I have a list of base class pointers:
list stuff;
Then, at some point one of the objects will look through all other objects.
Base * obj = ...; // A pointer from the 'stuff'-list.
for (list ::iterator it = stuff.begin(); it !=…

Martin Nycander
- 1,309
- 13
- 29