g2o
Loading...
Searching...
No Matches
ownership.h
Go to the documentation of this file.
1#ifndef G2O_OWNERSHIP_H
2#define G2O_OWNERSHIP_H
3
4#include <g2o/config.h>
5
6namespace g2o {
7template <typename T>
8void release(T* obj) {
9 (void)obj;
10#if G2O_DELETE_IMPLICITLY_OWNED_OBJECTS
11 delete obj;
12#endif
13}
14} // namespace g2o
15
16#endif
void release(T *obj)
Definition ownership.h:8