cpp-ipc/3rdparty/capo/make.hpp
2020-09-13 15:06:47 +08:00

22 lines
523 B
C++
Executable File

/*
The Capo Library
Code covered by the MIT License
Author: mutouyun (http://orzz.org)
*/
#pragma once
#include <type_traits> // std::decay
#include <utility> // std::forward
namespace capo
{
template <template <typename...> class Ret, typename... T>
using return_t = Ret<typename std::decay<T>::type...>;
template <template <typename...> class Ret, typename... T>
inline return_t<Ret, T...> make(T&&... args)
{
return return_t<Ret, T...>(std::forward<T>(args)...);
}
}