memgraph/utils/visitor/visitable.hpp

12 lines
217 B
C++
Raw Normal View History

#ifndef MEMGRAPH_UTILS_VISITOR_VISITABLE_HPP
#define MEMGRAPH_UTILS_VISITOR_VISITABLE_HPP
template <class T>
struct Visitable
{
2015-10-19 01:44:00 +08:00
virtual ~Visitable() = default;
virtual void accept(T& visitor) = 0;
};
#endif