Suggestion: pretty-printer for std containers in cling

Hi, I’m wondering if it would be easy to add the functionality to pretty-print std:: containers (vector, map, etc) at the ROOT6 prompt. ROOT containers already have a .Print() method, but std containers do not.

When debugging with lldb, it can easily pretty-print containers so you can glance at the contents. Maybe it would be easy to copy that functionality into cling? It could be added to the “.g NAME” option which is currently not so useful.

Jean-François

Hi Jean-François,

this is a good suggestion - thanks for posting. Indeed we have already planned to significantly upgrade value printing at the prompt during this summer: stay tuned :slight_smile:

Cheers,
Danilo

And it’s implemented, since a while!
Axel