6namespace Azure {
namespace Core {
22 template <
typename T>
struct UniqueHandleHelper;
55 template <
typename T,
void (&Deleter)(T*)>
struct UniqueHandleDeleter
57 void operator()(T* obj) { Deleter(obj); }
63 template <
typename T,
void (&FreeFunc)(T*)>
64 using BasicUniqueHandle = std::unique_ptr<T, UniqueHandleDeleter<T, FreeFunc>>;
67 template <
typename T,
template <
typename>
class U = _detail::UniqueHandleHelper>
68 using UniqueHandle =
typename U<T>::type;
72 void FreeWinHttpHandleImpl(
void* obj);
81 template <>
struct UniqueHandleHelper<void*>
83 static void FreeWinHttpHandle(
void* obj) { FreeWinHttpHandleImpl(obj); }
85 using type = _internal::BasicUniqueHandle<void, FreeWinHttpHandle>;
Compute the hash value for the input binary data, using SHA256, SHA384 and SHA512.
Definition azure_assert.hpp:57