- 博客(3)
- 资源 (3)
- 收藏
- 关注
转载 placement new
placement new 是重载operator new的一个标准、全局的版本,它不能被自定义的版本代替(不像普通的operator new和operator delete能够被替换成用户自定义的版本)。它的原型如下: void *operator new( size_t, v
2011-07-28 14:52:57 309
转载 bitmap 删除字符串中重复字符
思想:unsigned int bitmap[8] = {0,0,0,0,0,0,0,0};一共有 8*sizeof bitmap =256 bits用这256位记录256个数(unsigned char c的范围)是否出现过比如65('A') 出现就把第65位写为1bitmap
2011-07-15 16:30:23 592
转载 C++箴言:理解typename的两个含义
问题:在下面的 template declarations(模板声明)中 class 和 typename 有什么不同? template class Widget; // uses "class"template class Widget; // uses "typename"
2011-07-07 14:36:25 253
重构改善既有的代码
2014-08-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人