Belle II Software  release-05-02-19
IsApplicable.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/utilities/IsDetected.h>
13 #include <type_traits>
14 
15 namespace Belle2 {
20  namespace TrackFindingCDC {
21 
27  template <class AFunctor, typename... Ts>
28  constexpr bool isApplicable()
29  {
30  return isDetected<std::result_of_t, AFunctor(Ts...)>();
31  }
32  }
34 }
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19