(转)《Effective STL》条款24:当关乎效率时应该在map::operator[]和map::insert之间仔细选择

摘要: 如果你要更新已存在的map元素,operator[]更好,但如果你要增加一个新元素,insert则有优势.更有效率的”添加或更新“函数(书中的函数我抠了出来~)templatetypename MapType::iterator EfficientAddOrUpdate(MapType& m, ... 阅读全文
posted @ 2014-12-21 22:39 leoleexxx 阅读(266) 评论(0) 推荐(0)

virsual studio 2008 跨dll释放内存,堆指针无效问题

摘要: 运行时 触发了virsual studio的assert断点。输出内容如下:HEAP[xx.exe]: Invalid Address specified to RtlValidateHeap( 00C80000, 00CACFFC )Windows 已在 xx.exe 中触发一个断点。其原因可能是... 阅读全文
posted @ 2014-12-20 17:38 leoleexxx 阅读(284) 评论(0) 推荐(0)

sql server 100%

摘要: http://www.cnblogs.com/marvin/p/ASolutionForSQLServerCauseHighCPU.html 阅读全文
posted @ 2014-12-20 17:28 leoleexxx 阅读(218) 评论(0) 推荐(0)