RAM memory consumpion

I'm implementing an application that should decide whether to move computations
to external memory, depending on RAM memory consumption. Is there a C++ function that computes my maximal RAM memory capacity, and the amount of currently consumed portion (in MB, perhaps). Any other suggestions on how to obtain these values are welcome.
Thanks
C++ does not provide anything like that. If anything does, consult your operating system's API documentation.
Topic archived. No new replies allowed.