double-dispatch
Multiple dispatch and multi-methods
What are they, what\'s the different between them? Many sources, l开发者_StackOverflowike Wikipedia, claim they\'re the same thing, but others explicitly say the opposite, like sbi in this question:[详细]
2023-01-28 19:41 分类:问答C++: doubts about visitor pattern
I know what Visitor Pattern is and how to use it; this question is not a duplicate of this one. I\'ve got a library where I put most of the reusable code I write, and which I link to most of my pro[详细]
2023-01-25 04:50 分类:问答What is Single and Double Dispatch?
i have wrote the visitor pattern as follow but i don\'t understand what is single and double dispatch.[详细]
2023-01-07 19:25 分类:问答Visitor pattern lacking parameters
I\'m sure this must be a common problem with the Visitor pattern, so thought I\'d see if there is a standard solution.[详细]
2023-01-05 15:17 分类:问答method with two parameters which both need to be double dispatched
lets say i have a method which ha开发者_开发百科s two parameters. i have been implementing them as:[详细]
2022-12-31 01:07 分类:问答c++ double dispatch with mirrored hierarchies
the following class hierarchies represent abstract resource handler and resource hierarchies. Both have the interfaces as base classes. Now imagine you write a system where you can implement multiple[详细]
2022-12-21 17:35 分类:问答