当前分类:typetraits

c++ - 如何确定类型是否为 memcpy-save?

c++ - 为什么同时具有默认析构函数和 vector 成员会阻止类成为 "nothrow movable constructible"?

c++ - 需要模板的特定特化作为模板参数

C++检测类型是否为字符串对象

c++ - 为什么模板函数中的 std::is_array 不区分 int 和 array 类型?

c++ - 如果没有 if-constexpr 成功,触发编译时错误的最佳方法?

c++ - 这是带有 std::any 或 std::is_copy_constructible 的 libstdc++ 中的错误,还是合法错误?

c++ - fatal error : 'type_traits' file not found

C++模板模板中的此类分配是什么意思?

C++ 使用 CRTP 检测 friend 类的私有(private)成员

c++ - 通过函数传递模板参数时出错

c++ - 在 C++ 中,是否有针对 "copying"引用类别和 cv 资格的拟议类型特征助手?

c++ - 错误 : conversion from 'main()::<lambda()>' to non-scalar type 'function<void()>' requested

c++ - 在 C++17 中使用 SFINAE 和模板回退 "std::ostream"和 "<<"运算符

c++ - 如何静态断言元组的所有类型是否满足某些条件?

c++ - 如何将枚举模板映射到类型模板?

c++ - 如何使 `std::is_empty_v<T> && sizeof(T) > 1` 为真的类型 T?

haskell - 类似于 Haskell 的 MultiParamTypeClasses

c++ - 为类模板实现一个类型特征,该类型特征对于实际的类模板和继承它的类都是正确的

c++ - 像std::is_pointer和std::is_integral,std::is_cstring_pointer如何实现?

热门标签: