dune-pdelab 2.10-git
Loading...
Searching...
No Matches
common/utility.hh
Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3
4#ifndef DUNE_PDELAB_COMMON_UTILITY_HH
5#define DUNE_PDELAB_COMMON_UTILITY_HH
6
7#include <memory>
8
9namespace Dune {
10 namespace PDELab {
11
12
19
32 template<typename T>
37
38#ifndef DOXYGEN
39
40 template<typename T>
42 {
44 }
45
46 template<typename T>
48 {
49 return t;
50 }
51
52#endif // DOXYGEN
53
55
56 } // namespace PDELab
57} //namespace Dune
58
59#endif // DUNE_PDELAB_COMMON_UTILITY_HH
std::shared_ptr< T > ensure_shared_ptr(T &t)
Ensures that t is wrapped in a shared_ptr<T>
Definition common/utility.hh:33
For backward compatibility – Do not use this!