You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pEpJSONServerAdapter/server/pEp-utils.hh

18 lines
263 B
C++

#pragma once
#include <memory>
namespace pEp
{
namespace utility
{
template<class T>
std::unique_ptr<T, void(*)(T*)> make_c_ptr(T* data, void(*Deleter)(T*))
{
return { data, Deleter };
}
} // end of namespace pEp::util
} // end of namespace pEp