This is an example of how to use the Teuchos::RCP class.
 
#include "Teuchos_Version.hpp"
 
class A {
 public:
   A() {}
   virtual ~A(){}
   virtual void f(){}
};
class B1 : virtual public A {};
class B2 : virtual public A {};
class C : public B1, public B2 {};
 
 
{
 
  std::cout << Teuchos::Teuchos_Version() << std::endl << std::endl;
 
  
  
  
  
  
  
 
  
 
  
  
  
  
  
 
  
 
  
 
  return 0;
 
}
Reference-counted pointer class and non-member templated function implementations.
 
Smart reference counting pointer class for automatic garbage collection.
 
T * get() const
Get the raw C++ pointer to the underlying object.
 
#define TEUCHOS_ASSERT_EQUALITY(val1, val2)
This macro is checks that to numbers are equal and if not then throws an exception with a good error ...
 
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.