title: What are commonly-used ways to iterate over an enum class in C++?
body: <p>I am finding that all of my standard techniques for iterating over regular <code>enum</code>s unfortunately do NOT work on <code>enum class</code>es since enum classes do not implicitly convert to integers.</p>
  <p>NOT a duplicate of <a href="https://stackoverflow.com/questions/261963/how-can-i-iterate-over-an-enum">How can I iterate over an enum?</a>, since I'm asking about an <code>enum class</code> (ie: a <em>strongly-typed</em> enum) and they are asking about a regular <code>enum</code> (ie: a <em>weakly-typed</em> enum).</p>