dune-common  2.6-git
Classes | Namespaces | Functions
shared_ptr.hh File Reference

This file implements the class shared_ptr (a reference counting pointer), for those systems that don't have it in the standard library. More...

#include <memory>
#include <dune/common/typetraits.hh>

Go to the source code of this file.

Classes

struct  Dune::null_deleter< T >
 implements the Deleter concept of shared_ptr without deleting anything More...
 

Namespaces

 Dune
 Dune namespace.
 

Functions

template<typename T >
shared_ptr< T > Dune::stackobject_to_shared_ptr (T &t)
 Create a shared_ptr for a stack-allocated object. More...
 
template<typename T , typename T2 >
 Dune::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") std
 Create a shared_ptr to a base class for a stack-allocated object. More...
 
template<class T >
auto Dune::wrap_or_move (T &&t)
 Capture R-value reference to shared_ptr. More...
 
template<class T >
auto Dune::wrap_or_move (T &t)
 Capture L-value reference to shared_ptr. More...
 

Detailed Description

This file implements the class shared_ptr (a reference counting pointer), for those systems that don't have it in the standard library.

Author
Markus Blatt