DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
DDCore
include
DD4hep
Any.h
Go to the documentation of this file.
1
//==========================================================================
2
// AIDA Detector description implementation
3
//--------------------------------------------------------------------------
4
// Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5
// All rights reserved.
6
//
7
// For the licensing terms see $DD4hepINSTALL/LICENSE.
8
// For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9
//
10
// Author : M.Frank
11
//
12
//==========================================================================
13
#ifndef DD4HEP_ANY_H
14
#define DD4HEP_ANY_H
15
16
#if __cplusplus >= 201703L
17
// C/C++ include files
18
#include <any>
20
namespace
dd4hep
{
21
using
std::any;
22
using
std::any_cast;
23
using
std::make_any
;
24
}
25
26
#else
27
28
#include <boost/any.hpp>
30
namespace
dd4hep
{
31
32
using
boost::any;
33
using
boost::any_cast;
35
template
<
typename
T,
typename
... _Args>
36
any
make_any
(_Args&&... __args) {
37
return
any(T(std::forward<_Args>(__args)...));
38
}
39
}
40
#endif
41
42
#endif // DD4HEP_ANY_H
dd4hep::make_any
any make_any(_Args &&... __args)
Create an any holding a _Tp constructed from __args.
Definition:
Any.h:36
dd4hep
Namespace for the AIDA detector description toolkit.
Definition:
AlignmentsCalib.h:28
Generated on Thu Jan 9 2025 17:18:02 for DD4hep by
1.8.18