53class B1 :
virtual public A {};
54class B2 :
virtual public A {};
55class C :
public B1,
public B2 {};
59int main(
int argc,
char* argv[])
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.
RCP< T2 > rcp_dynamic_cast(const RCP< T1 > &p1, bool throw_on_fail=false)
Dynamic cast of underlying RCP type from T1* to T2*.
RCP< T2 > rcp_static_cast(const RCP< T1 > &p1)
Static cast of underlying RCP type from T1* to T2*.
RCP< T2 > rcp_const_cast(const RCP< T1 > &p1)
Constant cast of underlying RCP type from T1* to T2*.
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()