LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
fromFutureImport.h
Go to the documentation of this file.
1
10
#ifndef LARCOREALG_COREUTILS_FROMFUTUREIMPORT_H
11
#define LARCOREALG_COREUTILS_FROMFUTUREIMPORT_H
12
13
#include <utility>
// std::forward()
14
32
namespace
util::pre_std
{
33
34
#if (__cplusplus < 202000L) // still to be defined, should be C++20
35
37
struct
identity
{
38
39
struct
is_transparent
{};
// STL algorithms will be happy to find this
40
41
template
<
typename
T>
42
constexpr T&&
operator()
(T&& t) const noexcept
43
{
44
return
std::forward<T>(t);
45
}
46
47
};
// identity<>
48
49
#endif // (__cplusplus < 202000L)
50
51
}
// namespace pre_std
52
53
#endif // LARCOREALG_COREUTILS_FROMFUTUREIMPORT_H
util::pre_std::identity::operator()
constexpr T && operator()(T &&t) const noexcept
Definition:
fromFutureImport.h:42
util::pre_std
Definition:
fromFutureImport.h:32
util::pre_std::identity
Transparent functor that returns its argument just as passed.
Definition:
fromFutureImport.h:37
util::pre_std::identity::is_transparent
Definition:
fromFutureImport.h:39
larcorealg
v09_13_01
source
larcorealg
CoreUtils
fromFutureImport.h
Generated on Thu May 2 2024 20:59:33 for LArSoft by
1.8.11