ATLAS Offline Software
Loading...
Searching...
No Matches
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 */
11
12
13#ifndef CXXUTILS_AS_CONST_PTR_H
14#define CXXUTILS_AS_CONST_PTR_H
15
16
17namespace CxxUtils {
18
19
30template <class T>
31inline
32const 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
const T * as_const_ptr(const T *p)
Helper for getting a const version of a pointer.