mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
17 lines
297 B
C++
17 lines
297 B
C++
![]() |
#ifndef TOML11_UTILITY
|
||
|
#define TOML11_UTILITY
|
||
|
#include <utility>
|
||
|
#include <memory>
|
||
|
|
||
|
namespace toml
|
||
|
{
|
||
|
|
||
|
template<typename T, typename ... Ts>
|
||
|
inline std::unique_ptr<T> make_unique(Ts&& ... args)
|
||
|
{
|
||
|
return std::unique_ptr<T>(new T(std::forward<Ts>(args)...));
|
||
|
}
|
||
|
|
||
|
}// toml
|
||
|
#endif // TOML11_UTILITY
|