Dies ist ein Nachfolger zu Kerrek SB usw. vorherige Frage auf hübsch-Drucken STL-Container Pretty-print C++ STL containers, für die Kerrek etc gelungen ist, eine sehr elegante und vollständig allgemeine Lösung zu entwickeln, und seine Fortsetzung, Pretty-print std::tuple, wobei std::tuple<Args...>
behandelt wird.pretty-print C++ - Container mit Einzug nach Ebene
Ich frage mich, ob es möglich ist, in der Lösung über Einzug einzubeziehen?
Zum Beispiel, wenn ich einen Vektor von Vektor der Vektor der Zeichenfolge haben, würde Ich mag, wie etwas sehen:
{ // vector of vector of vector of string
{ // vector of vector of string
{ hello, world };// vector of string
{ The, quick, brown, fox, jumps, over, the, lazy, dog };
...
{ Now, is, the, time, for, all, good, men, to, come, to, the, aid, of, the, party}
};
{ // vector of vector of string
{ hello, world };// vector of string
{ The, quick, brown, fox, jumps, over, the, lazy, dog };
...
{ Now, is, the, time, for, all, good, men, to, come, to, the, aid, of, the, party}
};
...
{ // vector of vector of string
{ hello, world };// vector of string
{ The, quick, brown, fox, jumps, over, the, lazy, dog };
...
{ Now, is, the, time, for, all, good, men, to, come, to, the, aid, of, the, party}
};
}
Wie das schön gemacht werden würde?
thx für die Antwort, ja, ich bin für eine generische suchen. – athos