outline-map-region

outline-map-region is a compiled Lisp function in `outline.el'.

(outline-map-region FUN BEG END)

Call FUN for every heading between BEG and END.
When FUN is called, point is at the beginning of the heading and
the match data is set appropriately.