53class B1 :
virtual public A {};
54class B2 :
virtual public A {};
55class C :
public B1,
public B2 {};
59int main(
int argc,
char* argv[])
91 RCP<B2> nc_b2_ptr = rcp_const_cast<B2>(b2_ptr);
101 a_ptr2 =
rcp(ra_ptr3);
103 a_ptr2 =
rcp(ra_ptr2);
111 true_ptr = a_ptr1.
get();
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 ...
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
std::string Teuchos_Version()