1 #ifndef SILICIUM_TO_UNIQUE_HPP
2 #define SILICIUM_TO_UNIQUE_HPP
11 #if !SILICIUM_COMPILER_HAS_AUTO_RETURN_TYPE
12 -> std::unique_ptr<typename std::decay<T>::type>
15 typedef typename std::decay<T>::type decayed_T;
16 return std::unique_ptr<decayed_T>(
new decayed_T(std::forward<T>(t)));
19 template <
class Po
intee,
class T>
21 #if !SILICIUM_COMPILER_HAS_AUTO_RETURN_TYPE
22 -> std::unique_ptr<Pointee>
25 typedef typename std::decay<T>::type decayed_T;
26 return std::unique_ptr<Pointee>(
new decayed_T(std::forward<T>(t)));
auto to_unique(T &&t) -> std::unique_ptr< typename std::decay< T >::type >
Definition: to_unique.hpp:10
Definition: absolute_path.hpp:19