How do you capitalize the output generated by the cout of boolean values.
I know that if I did:
cout << boolalpha << true;
it will output
true
how do I get it to output
True
I have some feeling it has to do with do_truename and do_falsename, but I have no clue how to do it.
For a fleeting moment I thought that this could be done using
std::uppercasebut this doesn’t seem to be the case: these only apply to things like the hexadecimal digits and the exponent. So, it seems it, indeed, requires astd::numpunct<char>override which is, however, not that bad: