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.
18 lines
263 B
C++
18 lines
263 B
C++
![]()
7 years ago
|
#pragma once
|
||
|
|
||
5 years ago
|
#include <memory>
|
||
![]()
7 years ago
|
|
||
7 years ago
|
namespace pEp
|
||
|
{
|
||
|
namespace utility
|
||
|
{
|
||
5 years ago
|
template<class T>
|
||
|
std::unique_ptr<T, void(*)(T*)> make_c_ptr(T* data, void(*Deleter)(T*))
|
||
|
{
|
||
|
return { data, Deleter };
|
||
|
}
|
||
6 years ago
|
|
||
7 years ago
|
} // end of namespace pEp::util
|
||
|
} // end of namespace pEp
|
||
![]()
7 years ago
|
|