3
是否可以使用std::tuple
“部分专用”,以便它包含带有不同T的std::pair<fixed_t, T>
?强制std :: tuple包含std :: pair <fixed_type,T>
UPD:元组包含对。因此它等同于使用fixed_t
和常规std::tuple
的数组。
是否可以使用std::tuple
“部分专用”,以便它包含带有不同T的std::pair<fixed_t, T>
?强制std :: tuple包含std :: pair <fixed_type,T>
UPD:元组包含对。因此它等同于使用fixed_t
和常规std::tuple
的数组。
使用可变参数tempate别名和参数包扩:
template<typename... Types>
using fixed_tuple = std::tuple< std::pair<fixed_t, Types>... >;