basic_ios iostate flags functions

To set flags pertaining to the state of the input and output streams.