3 ms·
One other thing that have felt the need to solve was iteration through the values as if it was a container, i.e. using the range-based for loop.
by Koshkin 4y ago
One other thing that have felt the need to solve was iteration through the values as if it was a container, i.e. using the range-based for loop.
- mehrdadn 4y agoThat's supported here! You can do: for (auto const &member : enum_traits<E>::members()) { std::cout << member.name() << std::endl; }