dune-functions 2.9.0
referencehelper.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#ifndef DUNE_FUNCTIONS_COMMON_REFERENCE_HELPER_HH
4#define DUNE_FUNCTIONS_COMMON_REFERENCE_HELPER_HH
5
6#warning The header dune/functions/common/referencehelper.hh is deprecated and will be removed after release 2.9. Include dune/common/referencehelper.hh instead.
7
8#include <type_traits>
9
10#include <dune/common/referencehelper.hh>
11
12
13
14
15namespace Dune {
16namespace Functions {
17
18
23template<class T>
24[[deprecated("Use Dune::IsReferenceWrapper_v instead. Will be removed after release 2.9.")]]
25constexpr bool
26IsReferenceWrapper_v = Dune::IsReferenceWrapper_v<T>;
27
28
33template<class T>
34decltype(auto)
36[[deprecated("Use Dune::resolveRef instead. Will be removed after release 2.9.")]]
37(T&& t)
38{
39 return Dune::resolveRef(std::forward<T>(t));
40}
41
46template<class T>
48[[deprecated("Use Dune::ResolveRef_t instead. Will be removed after release 2.9.")]]
49 = Dune::ResolveRef_t<T>;
50
51
52}} // namespace Dune::Functions
53
54
55
56#endif // DUNE_FUNCTIONS_COMMON_REFERENCE_HELPER_HH
Definition: polynomial.hh:10
constexpr bool IsReferenceWrapper_v
This is an alias for Dune::IsReferenceWrapper_v.
Definition: referencehelper.hh:26
Dune::ResolveRef_t< T > ResolveRef_t
This is an alias for Dune::ResolveRef_t.
Definition: referencehelper.hh:49
decltype(auto) resolveRef(T &&t)
This is an alias for Dune::resolveRef.
Definition: referencehelper.hh:37