Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
core
src
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_ConfigDefs.hpp
Teuchos header file which uses auto-configuration information to include necessary C++ headers...
Teuchos::getConst
const T & getConst(T &t)
Return a constant reference to an object given a non-const reference.
Definition:
Teuchos_getConst.hpp:50
Generated on Fri Apr 4 2025 09:21:26 for Teuchos Package Browser (Single Doxygen Collection) by
1.8.5