摘要:
libcxx/include/__memory/pointer_traits.h中有两个常用的指针类型转换的模板 rebind_pointer 接受两个模板参数 From和To,将From类型的指针转换为To类型的指针 __rebind_pointer<From,To>::type pointer_ 阅读全文
posted @ 2025-06-07 15:06
ijpq
阅读(11)
评论(0)
推荐(0)
摘要:
来看allocator定义,首先是两个void特化版本 // include/__memory/allocator.h template <class _Tp> class allocator; #if _LIBCPP_STD_VER <= 17 || defined(_LIBCPP_ENABLE_ 阅读全文
posted @ 2025-06-07 14:37
ijpq
阅读(18)
评论(0)
推荐(0)

浙公网安备 33010602011771号