title: C++ 11 How to get enum class value by int value?
body: <p>Can I get enum class variant by my int variable value? Now, I have so enum class:</p>
  
  <pre><code>enum class Action: unsigned int {
  REQUEST,
  RETURN,
  ISSUANCE
  };
  </code></pre>
  
  <p>And I need get this value from database value (database returns unsigned int). How to optimal make it? Now, just I use switch for each variant, but it's a stupidity. Please, explain me!</p>