lundi 31 janvier 2022

make std::ostream automatically ident when encountering special characters

I would like to have some facility which makes a std::ostream automatically ident on encountering special characters (or special objects). Let's assume that the special characters are < and >. In this case the following input test0<test1<test2> > should produce the following output:

test0<
    test1<
        test2
    >
>

How would one go to implement this?

1 commentaire:

  1. A guide to online casinos no deposit bonus
    The best casino sites for playing slots for free money. There are a luckyclub.live number of online casinos that allow you to deposit real money on a casino Mar 30, 2021 · Uploaded by LuckyClub

    RépondreSupprimer