【发布时间】:2019-05-09 13:57:24
【问题描述】:
谁能给我解释一下type*是什么意思?
我在 std::enable_if 这个例子的文档中看到:
// #3, enabled via a parameter
template<class T>
void destroy(
T* t,
typename std::enable_if<std::is_trivially_destructible<T>::value>::type* = 0
){
std::cout << "destroying trivially destructible T\n";
}
为什么我们在这里使用类型,type* 是什么?
谢谢!
【问题讨论】: