+
+ /**
+ * [tagged_next_close(n, t)], like [tagged_next(n, t)] but uses a euristic to
+ * return the result faster if the next tag is close to [n].
+ * Runs in O(1)
+ */
+ inline node_t tagged_next_close(node_t, tag_t) const;
+
+ /**
+ * [tagged_descendant(n, t)] returns the first descendant of [n] in
+ * pre-order which has tag [t]. Returns xml_tree::NIL if no such node
+ * exists.
+ * Runs in O(1)
+ */