Sample implementation of my idea in the std-proposals@isocpp.org mailing list regarding IOstream.