Teuchos - Trilinos Tools Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
18 namespace Teuchos{
19 
20 
22 template<class T>
24 
25 public:
26 
29  return rcp(new T);
30  }
31 
32 };
33 
34 
35 } // namespace Teuchos
36 
37 
38 #endif // TEUCHOS_DUMMYOBJECTGETTER_HPP
static RCP< T > getDummyObject()
Retrieves a dummy object of type T.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
Class for retrieving a dummy object of type T.
Smart reference counting pointer class for automatic garbage collection.