max_v is very useful, but seems "private" inside of the detail namespace. IMO, it should be moved out.
Also, it's enum_subtype S template parameter should default to = subtype_v<E>.
It is less clear if min_v is equally value, but for symmetry, should probably also be made "public". Alternatively, expose a range_v<E> that returns the range min_v to max_v.
These are handy for helper code that map enum values to other things, such as in https://stackoverflow.com/a/79981587/845092
max_vis very useful, but seems "private" inside of thedetailnamespace. IMO, it should be moved out.Also, it's
enum_subtype Stemplate parameter should default to= subtype_v<E>.It is less clear if
min_vis equally value, but for symmetry, should probably also be made "public". Alternatively, expose arange_v<E>that returns the rangemin_vtomax_v.These are handy for helper code that map enum values to other things, such as in https://stackoverflow.com/a/79981587/845092