Files
itgmania212121/extern/IXWebSocket-11.3.2/ixwebsocket/IXUniquePtr.h
T

19 lines
362 B
C++
Raw Normal View History

2021-09-11 23:21:34 +02:00
/*
* IXUniquePtr.h
* Author: Benjamin Sergeant
* Copyright (c) 2020 Machine Zone, Inc. All rights reserved.
*/
#pragma once
#include <memory>
namespace ix
{
template<typename T, typename... Args>
std::unique_ptr<T> make_unique(Args&&... args)
{
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
}
} // namespace ix