C ++保留内存空间 [英] C++ Reserve Memory Space

查看:85
本文介绍了C ++保留内存空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何方法可以保留内存空间,以供以后默认使用Windows内存管理器,以便如果我的程序使用的空间不超过程序开始时所保留的空间,则我的应用程序不会用完内存?

is there any way to reserve memory space to be used later by default Windows Memory Manager so that my application won't run out of memory if my program don't use space more than I have reserved at start of my program?

推荐答案

拥有虚拟内存时,做这种事情毫无意义.

There is no point in doing this kind of thing when you have virtual memory.

这篇关于C ++保留内存空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆