Belle II Software  release-05-02-19
ReversedRange.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - 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/Range.h>
13 #include <tracking/trackFindingCDC/utilities/GetIterator.h>
14 
15 namespace Belle2 {
20  namespace TrackFindingCDC {
21 
22  template<class Ts, class It = GetIterator<Ts> >
23  Range<std::reverse_iterator<It> > reversedRange(Ts& ts)
24  {
25  return { std::rbegin(ts), std::rend(ts) };
26  }
27  }
29 }
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19