如何编写类型特征函数,如“is_private_constructor” to traits a default constructor of class is private (A class can instantiation) ?
最佳答案
对于 C++11,只是拼写不同:std::is_default_constructible<Ty>
在 header 中定义 <type_traits>
.
关于c++ - 如何特征默认构造函数是私有(private)的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13969133/