Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有.. int、int*、int** 等。我可以使用 std::remove_pointer 或类似方法直接输入 int 吗?谢谢
玉佩。
template<typename T> struct remove_all { typedef T type; }; template<typename T> struct remove_all<T*> { typedef typename remove_all<T>::type type; };
std::remove_pointer本身在这里并没有多大用处。
std::remove_pointer