28.5 — Stream states and input validation
The ios_base class contains several state flags that are used to signal various conditions that may occur when using streams: Although these flags live in ios_base, because ios is derived from ios_base and ios takes less typing than ios_base, they are generally accessed through ios (e.g. as std::ios::failbit). ios also …