I haven't used C++ in quite a few years and I never properly learned how memory allocation and garbage collection works. I've been looking at videos and trying to find sources to learn from, but I've been given an instruction in an assignment and I'm not sure how to interpret what I need to do.
The instruction is "If there is not enough memory left to create a new object, the function should return false; otherwise the function returns true"
Does this imply I should be using malloc() or is there another method of checking if memory is full?
Also if anyone knows of a good guide to this topic...