coal 3.0.1
Coal, The Collision Detection Library. Previously known as HPP-FCL, fork of FCL -- The Flexible Collision Library
Loading...
Searching...
No Matches
memory.h
Go to the documentation of this file.
1//
2// Copyright (c) 2021 INRIA
3//
4
5#ifndef COAL_SERIALIZATION_MEMORY_H
6#define COAL_SERIALIZATION_MEMORY_H
7
8namespace coal {
9
10namespace internal {
11template <typename T>
13 static size_t run(const T &) { return sizeof(T); }
14};
15} // namespace internal
16
23template <typename T>
24size_t computeMemoryFootprint(const T &object) {
26}
27
28} // namespace coal
29
30#endif // ifndef COAL_SERIALIZATION_MEMORY_H
Main namespace.
Definition broadphase_bruteforce.h:44
size_t computeMemoryFootprint(const T &object)
Returns the memory footpring of the input object. For POD objects, this function returns the result o...
Definition memory.h:24
static size_t run(const T &)
Definition memory.h:13