polybar-dwm/include/utils/memory.hpp
2022-03-06 18:28:26 +01:00

16 lines
224 B
C++

#pragma once
#include <cstdlib>
#include "common.hpp"
POLYBAR_NS
template <typename T>
using malloc_ptr_t = shared_ptr<T>;
template <typename T>
using malloc_unique_ptr = unique_ptr<T, decltype(free)*>;
POLYBAR_NS_END