Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Teuchos_getConst.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Teuchos: Common Tools Package
4 //
5 // Copyright 2004 NTESS and the Teuchos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef TEUCHOS_GET_CONST_HPP
11 #define TEUCHOS_GET_CONST_HPP
12 
13 #include "Teuchos_ConfigDefs.hpp"
14 
15 namespace Teuchos {
16 
49 template<class T>
50 inline const T& getConst( T& t ) { return t; }
51 
52 } // end namespace Teuchos
53 
54 #endif // TEUCHOS_GET_CONST_HPP
Teuchos header file which uses auto-configuration information to include necessary C++ headers...
const T & getConst(T &t)
Return a constant reference to an object given a non-const reference.