#Get all enum values

7 messages · Page 1 of 1 (latest)

lean spireBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

carmine quartz
#

but i suggest not using an enum here

proud palm
#

use a map instead

frail perchBOT
#
template <
    class Key,
    class T,
    class Hash = std::hash<Key>,
    class KeyEqual = std::equal_to<Key>,
    class Allocator =
        std::allocator<std::pair<const Key, T> >
    >
class unordered_map;```(since C++11)  
```cpp
namespace pmr {
template <
    class Key,
    class T,
    class Hash = std::hash<Key>,
    class Pred = std::equal_to<Key>>
using unordered_map = std::unordered_map<
    Key,
    T,
    Hash,
    Pred,
    std::pmr::polymorphic_allocator<
        std::pair<const Key, T>>>;
}```(since C++17)
Defined in header
lean spireBOT
#

Thank you and let us know if you have any more questions!

#

[SOLVED] Get all enum values