ATLAS Offline Software
as_const_ptr.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 /*
3  * Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration.
4  */
13 #ifndef CXXUTILS_AS_CONST_PTR_H
14 #define CXXUTILS_AS_CONST_PTR_H
15 
16 
17 namespace CxxUtils {
18 
19 
30 template <class T>
31 inline
32 const T* as_const_ptr (const T* p)
33 {
34  return p;
35 }
36 
37 
38 } // namespace CxxUtils
39 
40 
41 #endif // not CXXUTILS_AS_CONST_PTR_H
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
CxxUtils
Definition: aligned_vector.h:29
CxxUtils::as_const_ptr
const T * as_const_ptr(const T *p)
Helper for getting a const version of a pointer.
Definition: as_const_ptr.h:32