Enable if

//使用了enable_if,也就是如果有aligned_allocator 类型就用aligned_allocator 类型,如果没有那就输入matrix4f到vector中
	std::vector<Eigen::Matrix4f, Eigen::aligned_allocator<Eigen::Matrix4f>>rototranslations;
	
template<class _Iter,
		class = enable_if_t<_Is_iterator_v<_Iter>>>
		vector(_Iter _First, _Iter _Last, const _Alloc& _Al = _Alloc())

Guess you like

Origin blog.csdn.net/guanxunmeng8928/article/details/113128260