mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-12-16 03:08:52 +08:00
split files
This commit is contained in:
16
toml/utility.hpp
Normal file
16
toml/utility.hpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user