Dune Core Modules (2.9.0)

referencehelper.hh
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>
47using ResolveRef_t
48[[deprecated("Use Dune::ResolveRef_t instead. Will be removed after release 2.9.")]]
50
51
52}} // namespace Dune::Functions
53
54
55
56#endif // DUNE_FUNCTIONS_COMMON_REFERENCE_HELPER_HH
constexpr bool IsReferenceWrapper_v
Helper to detect if given type is a std::reference_wrapper.
Definition: referencehelper.hh:35
constexpr T & resolveRef(T &gf) noexcept
Helper function to resolve std::reference_wrapper.
Definition: referencehelper.hh:47
std::remove_reference_t< decltype(Dune::resolveRef(std::declval< T & >()))> ResolveRef_t
Type trait to resolve std::reference_wrapper.
Definition: referencehelper.hh:100
Dune namespace.
Definition: alignedallocator.hh:13
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 21, 23:30, 2024)