CppCommon  1.0.4.1
C++ Common Library
memory_memory.cpp

Memory management example

#include "memory/memory.h"
#include <iostream>
int main(int argc, char** argv)
{
std::cout << "Total RAM: " << CppCommon::Memory::RamTotal() << " bytes" << std::endl;
std::cout << "Free RAM: " << CppCommon::Memory::RamFree() << " bytes" << std::endl;
return 0;
}
static int64_t RamFree()
Free RAM in bytes.
Definition: memory.cpp:59
static int64_t RamTotal()
Total RAM in bytes.
Definition: memory.cpp:33
Memory management definition.