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

16 lines
224 B
C++
Raw Normal View History

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