memgraph/utils/visitor/visitable.hpp
2015-08-30 01:12:46 +02:00

12 lines
209 B
C++

#ifndef MEMGRAPH_UTILS_VISITOR_VISITABLE_HPP
#define MEMGRAPH_UTILS_VISITOR_VISITABLE_HPP
template <class T>
struct Visitable
{
virtual ~Visitable() {}
virtual void accept(T& visitor) = 0;
};
#endif