A related collection of methods allows you to extend this collection of flags and parameters for your own applications, without risk of conflict between them:
bitalloc guards against conflict between two packages that use
ios objects for different purposes.
This method is available for upward compatibility, but is not in the
ANSI working paper. The number of bits available is limited; a
return value of 0 means no bit is available.
ios::iword or ios::pword. Use xalloc to arrange
for arbitrary special-purpose data in your ios objects, without
risk of conflict between packages designed for different purposes.
ios instance. index, conventionally returned from
ios::xalloc, identifies what particular data you need.
ios.
ios
instance. index, originally returned from ios::xalloc,
identifies what particular pointer you need.
ios.