allout-flatten-exposed-to-buffer is an interactive compiled Lisp function in `allout.el'.

(allout-flatten-exposed-to-buffer &optional ARG TOBUF)

Present numeric outline of outline's exposed portions in another buffer.

The resulting outline is not compatible with outline mode -- use
`allout-copy-exposed-to-buffer' if you want that.

Use `allout-indented-exposed-to-buffer' for indented presentation.

With repeat count, copy the exposed portions of only current topic.

Other buffer has current buffer's name with " exposed" appended to
it, unless optional second arg TOBUF is specified, in which case it is
used verbatim.