Belle II Software  release-08-01-10
FunctorTag.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 #pragma once
9 
10 #include <type_traits>
11 
12 namespace Belle2 {
17  namespace TrackFindingCDC {
18 
20  struct FunctorTag {
21  };
22 
24  template <class T>
25  constexpr bool isFunctor()
26  {
27  return std::is_convertible<T, FunctorTag>::value;
28  }
29  }
31 }
Abstract base class for different kinds of events.
Tag class to facilitate marking of class as a functor in the sense of this code.
Definition: FunctorTag.h:20