QuantLib: Visitation – The AcyclicVisitor and the Visitor Template
The visitor design pattern is one of the classic software design patterns. It solves the problem of calling different functions for each objects of different types in a polymorphic collection. Imagine a type hierarchy. class Base; class DerivedA : public…
Read more