ifstream :: binary和ios :: binary之间有区别吗?

And*_* DM 4 c++ file-io iostream

我见过这样编写的代码:

ifstream fin;
fin.open("largefile.dat", ifstream::binary | ifstream::in);
Run Code Online (Sandbox Code Playgroud)

现在这让我感到困惑,上面的代码和下面的代码之间是否有任何区别使用ios::binaryios::in替换?

ifstream fin;
fin.open("largefile.dat", ios::binary | ios::in);
Run Code Online (Sandbox Code Playgroud)

0x4*_*2D2 7

没有区别.这些名称继承自std::ios_base具体流类派生的虚拟基础.