When an fstream
open fails (explicitly, or via ctor),
which bit is set?
ios::failbit
ios::eofbit
ios::badbit
ios::openbit
When a conversion fails, which bit is set?
ios::failbit
ios::eofbit
ios::badbit
ios::convbit
When you read the fifth byte of a five-byte file, which bit is set?
ios::failbit
ios::eofbit
ios::badbit
ios::lastbit
Which three are mentioned in the Rule of Three?
How do I get rid of the implicitly-provided assignment operator?
Foo &operator=(const Foo &) = 0;
Foo &operator=(const Foo &) = delete;
Foo &operator=(const Foo &) const;
delete Foo &operator=(const Foo &);