Teuchos - Trilinos Tools Package Version of the Day
Loading...
Searching...
No Matches
Teuchos_DummyObjectGetter.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
13#ifndef TEUCHOS_DUMMYOBJECTGETTER_HPP
14#define TEUCHOS_DUMMYOBJECTGETTER_HPP
15
16
17
18namespace Teuchos{
19
20
22template<class T>
24
25public:
26
29 return rcp(new T);
30 }
31
32};
33
34
35} // namespace Teuchos
36
37
38#endif // TEUCHOS_DUMMYOBJECTGETTER_HPP
Class for retrieving a dummy object of type T.
static RCP< T > getDummyObject()
Retrieves a dummy object of type T.
Smart reference counting pointer class for automatic garbage collection.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.