C++
起舞的迈特凯
这个作者很懒,什么都没留下…
展开
-
STL里list 调用类似越界 内存泄漏问题
最新出现一些Scudo ERROR问题,crash err1: Scudo ERROR: misaligned pointer when deallocating address 0xf528346c具体如下:F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------08-11 11:14:33.991 12170 12170 F DEBUG : Abort message: 'Scudo ERROR..原创 2021-08-13 18:18:08 · 8479 阅读 · 2 评论 -
std::queue的使用
定义于头文件 <queue>template< class T, class Container = std::deque<T>> class queue;std::queue 类是容器适配器,它给予程序员队列的功能——尤其是 FIFO (先进先出)数据结构。类模板表现为底层容器的包装器一一只提供特定的函数集合。 queue 在底层容器尾端推入元素,从首端弹出元素。模板形参queue 模板类也需要两个模板参数,一个是元素类型,一个容...转载 2021-08-13 18:03:01 · 966 阅读 · 0 评论 -
android property_get/property_set设置与avc权限添加
1.使用需要添加对应的头文件,同时需要在Android.mk文件中加入库libcutils.#include <cutils/properties.h>2.property_get/property_set 函数原型/* property_get: returns the length of the value which will never be** greater than PROPERTY_VALUE_MAX - 1 and will always be zero t原创 2020-07-29 17:11:09 · 2975 阅读 · 0 评论