doc: type_list_transform

This commit is contained in:
Michele Caini
2022-05-25 23:04:15 +02:00
parent 630ba195d1
commit aa3e769463

View File

@@ -334,12 +334,13 @@ template<typename, template<typename...> class>
struct type_list_transform;
/**
* @brief Computes the difference between two type lists.
* @brief Applies a given _function_ to a type list and generate a new list.
* @tparam Type Types provided by the type list.
* @tparam Op Unary operation as template class with a type member named `type`.
*/
template<typename... Type, template<typename...> class Op>
struct type_list_transform<type_list<Type...>, Op> {
/*! @brief Resulting type list after applying the transform function. */
using type = type_list<typename Op<Type>::type...>;
};