File: Memory.h

package info (click to toggle)
pentobi 29.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,892 kB
  • sloc: cpp: 25,719; javascript: 875; xml: 40; makefile: 13; sh: 6
file content (24 lines) | stat: -rw-r--r-- 807 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//-----------------------------------------------------------------------------
/** @file libboardgame_base/Memory.h
    @author Markus Enzenberger
    @copyright GNU General Public License version 3 or later */
//-----------------------------------------------------------------------------

#ifndef LIBBOARDGAME_BASE_MEMORY_H
#define LIBBOARDGAME_BASE_MEMORY_H

#include <cstddef>

namespace libboardgame_base {

//-----------------------------------------------------------------------------

/** Get the physical memory available on the system.
    @return The memory in bytes or 0 if the memory could not be determined. */
std::size_t get_memory();

//-----------------------------------------------------------------------------

} // namespace libboardgame_base

#endif // LIBBOARDGAME_BASE_MEMORY_H