C++ Type Traits 类型特征
#类型修饰类
std::add_const_t<T>: 为类型T添加 const 修饰符。std::add_volatile_t<T>: 为类型T添加 volatile 修饰符。std::add_cv_t<T>: 为类型T添加 const 和 volatile 修饰符。std::remove_const_t<T>: 移除类型T的 const 修饰符。std::remove_volatile_t<T>: 移除类型T的 volatile 修饰符。std::remove_cv_t<T>: 移除类型T的 const 和 volatile 修饰符。std::add_lvalue_reference_t<T>: 为类型T添加左值引用修饰符。std::add_rvalue_reference_t<T>: 为类型T添加右值引用修饰符。std::remove_reference_t<T>: 移除类型T的引用修饰符。std::remove_extent_t<T>: 移除类型T的数组维度。std::remove_all_extents_t<T>: 移除类型T的所有数组维度。std::remove_pointer_t<T>: 移除类型T的指针修饰符。std::add_pointer_t<T>: 为类型T添加指针修饰符。std::make_signed_t<T>: 将类型T转换为有符号类型。std::make_unsigned_t<T>: 将类型T转换为无符号类型。