C++ Iterating Scoped Enumerations
requirements Map non-integer values to scoped enum literals Use switch statements to catch missing enum cases in value lookup ( -Wswitch-enum allows default case) Use class template to iterate the enum mapped values Limitations Iterator needs to be given begin/end points, so you have to sync this end limit with the last entry in EncapsulatedEnum::Key…