今天看到了

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);
        }

相关文章:

  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2022-03-03
  • 2021-07-22
  • 2022-01-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-06
  • 2021-07-26
  • 2021-08-27
  • 2022-02-28
相关资源
相似解决方案