随笔分类 -  C++ / C++原理

摘要:C++ std::is_same_v的实现 声明: template<class _Ty, class _Uty> constexpr bool is_same_v = false 特化版本后,即是同一个类型的实现(同一个变量的版本): template<class _Ty> constexpr b 阅读全文
posted @ 2023-12-22 10:04 经纬视界 阅读(59) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-12-21 11:00 经纬视界 阅读(244) 评论(0) 推荐(0)