I was getting some help on creating files with fstream, but came across this method where you pass std::fstream::trunc to the constructor.
I was curious as to how fstream is a class, but referencing the trunc member is like fstream is a namespace (fstream::trunc, like NAMESPACE::MEMBER).
How is this done?