Hot answers tagged

3 votes
Accepted

AEC-to-WebAssembly compiler in C++

How to create an alias for an enum I see you are declaring 5 constants, like i32, to avoid having to write out a whole ...
user avatar
  • 33.4k
2 votes
Accepted

Any bettter way to achieve this lookup table?

It depends what you really need. As @Aganju pointed out that looking up a hash is much faster than looping through strings and comparing. But for your case, you seems to find out whether a specific ...
user avatar
  • 136

Only top scored, non community-wiki answers of a minimum length are eligible