如何在编译时检测所有指针类型

I just realized that the type trait std::is_pointer does not detect smart pointers. Is there a way to detect both raw pointers, std::unique_ptr, std::shared_ptr and so on?

评论