6#ifndef DUNE_TO_UNIQUE_PTR_HH
7#define DUNE_TO_UNIQUE_PTR_HH
9#warning to_unique_ptr.hh and ToUniquePtr are deprecated. Use std::unique_ptr or std::shared_ptr instead.
22 template <
class T,
class... Args>
25 return std::make_unique(std::forward<Args>(args)...);
Dune namespace.
Definition alignedallocator.hh:13
std::unique_ptr< T > makeToUnique(Args &&... args)
Alias for std::make_unique introduced as transition wrapper.
Definition to_unique_ptr.hh:23
std::unique_ptr< T > ToUniquePtr
Alias for std::unique_ptr introduced as transition wrapper.
Definition to_unique_ptr.hh:18