Belle II Software  release-05-01-25
MakeUnique.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - 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 <memory>
13 
14 namespace Belle2 {
19  namespace TrackFindingCDC {
20 
26  template<typename T, typename... Args>
27  std::unique_ptr<T> makeUnique(Args&& ... args)
28  {
29  return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
30  }
31 
32  }
34 }
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19