1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-10-27 05:23:39 -04:00
polybar/include/utils/memory.hpp
2022-03-06 18:28:26 +01:00

15 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