CppCommon
1.0.4.1
C++ Common Library
Main Page
Namespaces
Namespace List
Namespace Members
All
a
c
d
f
g
h
n
o
p
r
s
t
v
w
Functions
c
f
g
o
p
r
s
Variables
Typedefs
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
~
Variables
_
a
b
c
d
f
i
l
m
n
p
r
Typedefs
c
d
i
k
m
o
p
r
s
v
Related Functions
a
c
d
e
h
o
s
Files
File List
File Members
All
Functions
Macros
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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;
}
CppCommon::Memory::RamFree
static int64_t RamFree()
Free RAM in bytes.
Definition:
memory.cpp:59
CppCommon::Memory::RamTotal
static int64_t RamTotal()
Total RAM in bytes.
Definition:
memory.cpp:33
memory.h
Memory management definition.
Generated by
1.9.1