摘要: 背景:miduo 源码中遇到如下语句: uintptr_t v = reinterpret_cast<uintptr_t>(p); 以上 p 的类型是void * 现在他的底层二进制提供了新的解释 解释为uintptr_t的类型。 那uintptr_t究竟是个什么类型呢? 在64位的机器上,intp 阅读全文
posted @ 2020-09-03 16:38 熊鑫xxx1x 阅读(2353) 评论(0) 推荐(0)
摘要: recerse() 函数 作用: 逆序(反转)无论是在C或是C++中用的都特别多,常用于数组,字符串,容器等,其本身的函数参数也不复杂。 标准C中是没有recerse()函数的,这是C++的一个新增函数,使用需要包含头文件 头文件: #include <algorithm> 左闭右开区间: reve 阅读全文
posted @ 2020-09-03 11:58 熊鑫xxx1x 阅读(551) 评论(0) 推荐(0)