Skip to content
Snippets Groups Projects

Solver manager

Merged Jeremie Deray requested to merge solver_manager into master
1 file
+ 24
0
Compare changes
  • Side-by-side
  • Inline
src/make_unique.h 0 → 100644
+ 24
0
/**
* \file make_unique.h
*
* Created on: Oct 11, 2017
* \author: Jeremie Deray
*/
#ifndef _WOLF_MAKE_UNIQUE_H_
#define _WOLF_MAKE_UNIQUE_H_
#include <memory>
namespace wolf {
/// @note this appears only in cpp14
template <typename T, typename... Args>
std::unique_ptr<T> make_unique(Args&&... args)
{
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
}
}
#endif /* _WOLF_MAKE_UNIQUE_H_ */
Loading