面向对象和软件工程中,visitor patter是一种用来分离对象和算法的方法。
(可以用来编写algorithm/compute/op和schedule分离的代码)
来源:
https://en.wikipedia.org/wiki/Visitor_pattern#C++_example