摘要: 今天看到了void *__CRTDECL operator new(size_t size) _THROW1(_STD bad_alloc) { // try to allocate size bytes void *p; while ((p = malloc(size)) == 0) if (_callnewh(size) == 0) { // report no memory static const std::bad_alloc nomem; _RAISE(nomem); } return (p); } 阅读全文
posted @ 2011-07-19 19:58 hailong 阅读(411) 评论(0) 推荐(0) 编辑