In C++, how do I detect if my std::ostream os is at the start of a line, in other words (I think) the most recent thing written to os is either
std::ostream os
os