magic_enum icon indicating copy to clipboard operation
magic_enum copied to clipboard

enum_map class

Open jlwoolf opened this issue 2 years ago • 3 comments

I thought this could be a potential branch for the magic_enum library. It is a simple map data structure that utilizes some of the magic_enum functions to map every enum entry to a unique value.

jlwoolf avatar Apr 17 '22 18:04 jlwoolf

For updating, I didn't forget about this PR, now I'm preparing a new release 0.8.0, and this PR will be included in the next release 0.8.1

Neargye avatar May 10 '22 17:05 Neargye

This can be made constexpr, like I suggest here

So I think this needs an upgrade

schaumb avatar May 12 '22 19:05 schaumb

it is better to keep this class in a separate header. And I thing need all map-api begin/end find etc, https://github.com/Neargye/magic_enum/issues/150 was just a concept idea and not advice for implementation

Neargye avatar May 22 '22 11:05 Neargye

@jlwoolf @schaumb Can i help with that pr to make it mergeable for Neargye?

florianbecker avatar Nov 12 '22 13:11 florianbecker

@florianbecker I haven't really had the time to work on this much, so if you'd like to continue it, by all means go ahead. I can close this pull request if you'd like to open another with the improvements/fixes, or add you as a contributor to the fork.

jlwoolf avatar Nov 14 '22 05:11 jlwoolf

Hi!

I started an another PR. I implemented already array bitset set and flat_set to namespace magic_enum::containers.

I thought I has time to implement the multiset map and flat_map too.

The array class is semantically equal to this PR.

schaumb avatar Nov 14 '22 06:11 schaumb

will closed in https://github.com/Neargye/magic_enum/pull/187

Neargye avatar Nov 14 '22 12:11 Neargye