随笔分类 - C++ / C++原理
摘要:C++ std::is_same_v的实现 声明: template<class _Ty, class _Uty> constexpr bool is_same_v = false 特化版本后,即是同一个类型的实现(同一个变量的版本): template<class _Ty> constexpr b
阅读全文
摘要:C++ 标准17 折叠表达式的学习 源码如下:其中调用了 _Is_any_of_v _EXPORT_STD template <class _Ty> _INLINE_VAR constexpr bool is_integral_v = _Is_any_of_v<remove_cv_t<_Ty>, b
阅读全文

浙公网安备 33010602011771号