visitor模式

面向对象和软件工程中,visitor patter是一种用来分离对象和算法的方法。

(可以用来编写algorithm/compute/op和schedule分离的代码)

 

来源:

https://en.wikipedia.org/wiki/Visitor_pattern#C++_example

 

posted @ 2022-01-11 22:59  xuyv  阅读(82)  评论(0编辑  收藏  举报