4#ifndef DUNE_SHARED_PTR_HH
5#define DUNE_SHARED_PTR_HH
19 using std::shared_ptr;
20 using std::make_shared;
103 template<
typename T,
typename T2>
130 return std::make_shared<std::decay_t<T>>(std::forward<T>(t));
Traits for type conversions and type information.
Dune namespace.
Definition alignment.hh:11
auto wrap_or_move(T &&t)
Capture R-value reference to shared_ptr.
Definition shared_ptr.hh:128
shared_ptr< T > stackobject_to_shared_ptr(T &t)
Create a shared_ptr for a stack-allocated object.
Definition shared_ptr.hh:75
implements the Deleter concept of shared_ptr without deleting anything
Definition shared_ptr.hh:52
void operator()(T *) const
Definition shared_ptr.hh:53
shared_ptr< T2 > stackobject_to_shared_ptr(T &t)
Create a shared_ptr to a base class for a stack-allocated object.
Definition shared_ptr.hh:104
shared_ptr< T > stackobject_to_shared_ptr(T &t)
Create a shared_ptr for a stack-allocated object.
Definition shared_ptr.hh:75