fork download
  1. #include <map>
  2.  
  3. enum class Test{
  4. T1,
  5. T2
  6. };
  7.  
  8. int main ( int argc, char** argv ){
  9. std::map<Test,float> t_map;
  10. Test e = Test::T1;
  11. float s = t_map[e];
  12. }
Success #stdin #stdout 0s 2980KB
stdin
Standard input is empty
stdout
Standard output is empty