You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #if!defined MEMORY_HPP
- #define MEMORY_HPP
- #include <cstdlib>
-
- template <class T>
- struct FreeDeleter
- {
- void operator()(T* ptr)const
- {
- if (ptr)
- {
- std::free(ptr);
- }
- }
- };
-
- #endif
|