Many moments are incomprehensible, for example this:
#define _IOSskipws 0x0001 #define _IOSunitbuf 0x0002 enum _Fmtflags { // constants for formatting options _Fmtmask = 0xffff, _Fmtzero = 0}; static const _Fmtflags skipws = (_Fmtflags)_IOSskipws; static const _Fmtflags unitbuf = (_Fmtflags)_IOSunitbuf;
These are parts of the code from the xiobase file. Why is _IOSunitbuf reduced to _Fmtflags and how does this cast work?
In general, this is one of the questions. Maybe there are articles / books / ... somewhere that would, if not fully, then partially explain the code in the source? Most likely, experienced programmers will understand almost all the code when they first met the STL, because it is unlikely that they have their own ecosystem and they have already seen similar codes in various sources. Maybe someday I will be able to do it with simplicity, but now I would like some kind of documentation (on the source code, and not on what it gives) for dummies or something).