Go to the documentation of this file.
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>
104 inline DUNE_DEPRECATED_MSG(
"Do not use the explicit casting version of stackobject_to_shared_ptr, just assign the result to a shared_ptr to the base class")
106 not std::is_same<T,T2>::value,
135 return std::make_shared<std::decay_t<T>>(std::forward<T>(t));
void operator()(T *) const
Definition: shared_ptr.hh:53
Dune namespace.
Definition: alignedallocator.hh:9
shared_ptr< T > stackobject_to_shared_ptr(T &t)
Create a shared_ptr for a stack-allocated object.
Definition: shared_ptr.hh:75
DUNE_DEPRECATED_MSG("Use Dune::filledArray() from <dune/common/filledarray.hh>") std
Create an array and fill it with copies of the provided value.
Definition: array.hh:51
auto wrap_or_move(T &&t)
Capture R-value reference to shared_ptr.
Definition: shared_ptr.hh:133
implements the Deleter concept of shared_ptr without deleting anything
Definition: shared_ptr.hh:51
Traits for type conversions and type information.