diff options
Diffstat (limited to 'source/blender/blenlib/BLI_parameter_pack_utils.hh')
-rw-r--r-- | source/blender/blenlib/BLI_parameter_pack_utils.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_parameter_pack_utils.hh b/source/blender/blenlib/BLI_parameter_pack_utils.hh index d1ef7bcbc65..36ceea1f4b8 100644 --- a/source/blender/blenlib/BLI_parameter_pack_utils.hh +++ b/source/blender/blenlib/BLI_parameter_pack_utils.hh @@ -24,6 +24,13 @@ template<typename T, T Element> struct TypeForValue { }; /** + * A struct that allows passing in a type as a function parameter. + */ +template<typename T> struct TypeTag { + using type = T; +}; + +/** * A type that encodes a list of values of the same type. * This is similar to #std::integer_sequence, but a bit more general. It's main purpose it to also * support enums instead of just ints. |