MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / out_node

Class out_node

code/strings/aho_corasick.cpp:2–5  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1struct aho_corasick {
2 struct out_node {
3 string keyword; out_node *next;
4 out_node(string k, out_node *n)
5 : keyword(k), next(n) { } };
6 struct go_node {
7 map<char, go_node*> next;
8 out_node *out; go_node *fail;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected