IXWebSocket/ixwebsocket/IXUniquePtr.h
Benjamin Sergeant c16b64bcb2 c++11 unique_ptr
2020-05-30 10:54:30 -07:00

19 lines
346 B
C++

/*
* 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)...));
}
}