memgraph/utils/visitor/visitable.hpp
2015-10-18 19:44:00 +02:00

12 lines
217 B
C++

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