This allows generic code to query these parameters, and is a common
practice in a lot of other template classes. I'm mainly interested in
the ValueType paramemter here, but I've added others for symmetry.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 28801 Build 28800: arc lint + arc unit
Event Timeline
Comment Actions
The use case is being able to convert from a ulittle32_t (and friends) into an enum class. Since both are strongly typed, I cannot convert between one and the other without an intermediate cast to the basic type (and so, in generic code, I need to know what that type is). You can see it in action in D58976 (just search for value_type).