1.The constants are actually defined in std::ios_base but std::ios (well, actually std::basic_ios<cT, Traits>)
is derived from std::ios_base. Thus, all members defined in std::ios_base can be accessed using std::ios.
2.The class std::ios_base contains all members which entirely independent of the stream's template parameter.
std::basic_ios<cT, Traits> derives from std::ios_base and output streams.
翻译:
1.这些常量实际上是在std::ios_base中定义的,而不是在std::ios中定义的(实际上是std::basic_ios<cT, Traits>),而且它派生自std::ios_base。因此,std::ios_base中定义的所有成员都可以通过std::ios访问。
2.std::ios_base类包含了与流的模板参数完全无关的所有成员。
std::basic_ios<cT, Traits>派生自std::ios_base和输出流。
补充:
basic_ios和ios是同价的。