Belle II Software  release-06-02-00
MakeUnique.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 <memory>
11 
12 namespace Belle2 {
17  namespace TrackFindingCDC {
18 
24  template<typename T, typename... Args>
25  std::unique_ptr<T> makeUnique(Args&& ... args)
26  {
27  return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
28  }
29 
30  }
32 }
Abstract base class for different kinds of events.