DFA_matrix<> A; const char *w = "word"; tree_build(A, w, w + 4); cursor<DFA_matrix<> > c(A); for(c = A.initial(); *w && c.forward(*w); ++w); assert (*w == 0 && c.src_final());