12 #ifndef INCLUDE_DISTORTOS_INTERNAL_MEMORY_STORAGEDELETER_HPP_ 13 #define INCLUDE_DISTORTOS_INTERNAL_MEMORY_STORAGEDELETER_HPP_ 34 template<
typename T,
typename U>
37 delete[] reinterpret_cast<T*>(storage);
44 #endif // INCLUDE_DISTORTOS_INTERNAL_MEMORY_STORAGEDELETER_HPP_ Top-level namespace of distortos project.
Definition: buttons.hpp:33
void storageDeleter(U *const storage)
Templated deleter that can be used with std::unique_ptr and dynamic storage allocated with new T[].
Definition: storageDeleter.hpp:35