码迷,mamicode.com
首页 >  
搜索关键字:deallocate unused    ( 192个结果
Reducing File Size
【Reducing File Size】1、Unity strips out unused assets。 The amount of assets in your project folder doesnotinfluence the size of your built player. Uni....
分类:其他好文   时间:2014-10-20 23:15:51    阅读次数:247
给大家分享一段启动模式代码
============问题描述============ 给大家分享一段启动模式的代码@TargetApi(Build.VERSION_CODES.GINGERBREAD) @SuppressWarnings("unused") @Override publicvoidonCreate(){ if(...
分类:其他好文   时间:2014-10-20 23:07:39    阅读次数:270
Xcode报unused variable解决办法
RT最后有个路径/Users/zhangjianqiang/Library/Developer/Xcode/DerivedData/ModuleCache/ 进入到这个文件下把2N8K9AX48Y9IS文件夹删除即可;报错原因和为啥报错不知道~但是把这个文件夹删了就No problem!如果谁知道可...
分类:其他好文   时间:2014-10-20 22:37:12    阅读次数:287
SQL Server 数据库游标选项
背景: 游标控制服务器端游标的行为,相关的T-SQL如下: declare , open , fetch , close , deallocate。1、 cursor_close_on_commit{on | off}; 如果设置为on 在事务提交时或回滚时会关闭打开的游标, 如果设置为...
分类:数据库   时间:2014-10-20 13:26:26    阅读次数:150
关于在Cocos2dx中注册触摸事件——Lua
关于在Cocos2dx中注册触摸事件,之前一直对此一知半解,这两天在看引擎的源码,趁此机会写下来...以下纯属个人理解,如有不对欢迎指正。。。在引擎的CCLayer类中声明了有四个方法:1 virtual bool onTouchBegan(Touch *touch, Event *unused_e...
分类:其他好文   时间:2014-10-13 19:56:51    阅读次数:185
STL内存分配
STL内存创建 1.    Stl内存创建__malloc_alloc_template STL的常用的内存创建参考文件: stl_alloc.h,文件中定义了__malloc_alloc_template模板库,创建与释放使用C方法malloc、free、realloc,模板库里面主要对外提供了函数: allocate: 分配内存 deallocate: 释放内存...
分类:其他好文   时间:2014-10-07 09:46:23    阅读次数:279
Allocator的简易实现
我们只需改动allocate和deallocate,来实现自己的内存分配策略即可。代码如下: 1 #ifndef ALLOCATOR_H 2 #define ALLOCATOR_H 3 4 #include 5 #include 6 7 template 8 class Allocato...
分类:其他好文   时间:2014-10-05 19:47:38    阅读次数:236
标准库Allocator的简易实现(二)
自己实现Allocator并不难,其实只需要改变allocate和deallocate,来实现自己的内存分配策略。 下面是一个std::allocator的模拟实现 #ifndef ALLOCATOR_HPP #define ALLOCATOR_HPP #include #include templ...
分类:其他好文   时间:2014-10-02 20:34:33    阅读次数:264
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
check here.Basically the compiler will insert unused memory into a structure so that data members are optimally aligned for better performance.
分类:其他好文   时间:2014-09-19 05:31:24    阅读次数:270
C++ 容器 LIST VECTOR erase
在Vector中 做erase操作就是按照下面的步骤来做的: copy() destory(); 在list容器中 erase操作 destory() deallocate()Vector使用从某种意义上来说内存空间只是有增无减【如果不通过某种技术的话】 而list就像正常操作一样 该释...
分类:编程语言   时间:2014-09-01 22:27:03    阅读次数:187
192条   上一页 1 ... 16 17 18 19 20 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!