Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-06 08:24:37

0001 // Copyright (C) 2026 Wouter Deconinck
0002 // SPDX-License-Identifier: LGPL-3.0-or-later
0003 
0004 #pragma once
0005 
0006 #include <utility>
0007 
0008 namespace eicrecon {
0009 
0010 // A helper class to combine multiple lambdas into a single callable object.
0011 //
0012 //  multilambda _toDouble = {
0013 //      [](const std::string& v) { return dd4hep::_toDouble(v); },
0014 //      [](const double& v) { return v; },
0015 //  };
0016 //
0017 template <typename... L> struct multilambda : L... {
0018   using L::operator()...;
0019   constexpr multilambda(L... lambda) : L(std::move(lambda))... {}
0020 };
0021 
0022 } // namespace eicrecon