15 Jun
2015
15 Jun
'15
12:29 p.m.
Better Enums is not the container, however. It’s a class that provides access to two containers, currently through _names() and _values(). Those containers do have size() (a function), and begin()/end():
Well, as I said, I think it makes sense to view it as a special type of map.
A secondary reason, by the way, why I didn’t make enums themselves be containers is that enums are types instead of values, whereas containers in typical C++ libraries are values. I don’t think this could be made to work: for (auto channel : Channel) { … }