memgraph/cypher/ast/list.hpp

22 lines
311 B
C++
Raw Normal View History

#ifndef MEMGRAPH_CYPHER_AST_LIST_HPP
#define MEMGRAPH_CYPHER_AST_LIST_HPP
#include "ast_node.hpp"
namespace ast
{
template <class T, class Derived>
struct List : public AstNode<Derived>
{
List(T* value, Derived* next)
: value(value), next(next) {}
T* value;
Derived* next;
};
}
#endif