我已经看到过使用这个元函数,但从未真正理解为什么以及在什么情况下需要它.有人能用一个例子解释一下吗?
template <typename T> struct identity { using type = T; };
c++
c++ ×1