10 #ifndef LARCOREALG_COREUTILS_OPERATIONS_H 11 #define LARCOREALG_COREUTILS_OPERATIONS_H 40 auto operator() (
T& ref)
const {
return std::addressof(ref); }
106 template <
typename T>
107 decltype(
auto) operator() (
T&& ptr)
const {
return *ptr; }
133 #endif // LARCOREALG_COREUTILS_OPERATIONS_H Namespace for general, non-LArSoft-specific utilities.
decltype(auto) takeAddress()
Returns a functor that returns the address of its argument.
Functor returning the address in memory of the operand.
auto operator()(T &ref) const
Returns the address of the argument.
decltype(auto) dereference()
Returns a functor that returns *ptr of its argument ptr.
Functor dereferencing the operand.