M
Matt
Does the standard define default values for the format state of an
ostream? I would like to be able to put a stream in a standard format
state without thinking about how some other routine may have changed the
state.
I don't see the answer in Stroustrup or in the parashift FAQs.
I would like to write a statement like
my_ostream.restore_format_state_defaults();
Is there anything like that in ios_base or elsewhere?
I see copyfmt(), but Stroustrup doesn't say much about what it is
supposed to do. It's not clear how I could (say) copy a format to a
global variable at startup and restore from that copy.
ostream? I would like to be able to put a stream in a standard format
state without thinking about how some other routine may have changed the
state.
I don't see the answer in Stroustrup or in the parashift FAQs.
I would like to write a statement like
my_ostream.restore_format_state_defaults();
Is there anything like that in ios_base or elsewhere?
I see copyfmt(), but Stroustrup doesn't say much about what it is
supposed to do. It's not clear how I could (say) copy a format to a
global variable at startup and restore from that copy.