Hello. As far as I know, the OS itself allocates memory for the heap, but how then to work with memory if we don’t know how much it is in the heap?
|
Hello. As far as I know, the OS itself allocates memory for the heap, but how then to work with memory if we don’t know how much it is in the heap?
Source: https://ru.stackoverflow.com/questions/776570/
All Articles
new/deleteoperators, does this for you. If there is not enough memory, he will inform you about this by throwing the exceptionstd::bad_alloc. - VTT