Teuchos - Trilinos Tools Package
Version of the Day
Loading...
Searching...
No Matches
core
src
Teuchos_getConst.hpp
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
Teuchos
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Generated on
for Teuchos - Trilinos Tools Package by
1.15.0