polybar-dwm/include/utils/memory.hpp

16 lines
224 B
C++
Raw Normal View History

#pragma once
2016-05-19 14:41:06 +00:00
2017-01-11 04:10:51 +00:00
#include <cstdlib>
2016-06-15 03:32:35 +00:00
#include "common.hpp"
2016-11-19 05:22:44 +00:00
POLYBAR_NS
2016-05-19 14:41:06 +00:00
2016-12-21 22:22:02 +00:00
template <typename T>
using malloc_ptr_t = shared_ptr<T>;
2022-03-06 15:40:42 +00:00
template <typename T>
using malloc_unique_ptr = unique_ptr<T, decltype(free)*>;
2016-06-15 03:32:35 +00:00
2016-11-19 05:22:44 +00:00
POLYBAR_NS_END