115 vec->push_back(25.0);
116 vec->push_back(32.0);
133 vec->push_back(25.0);
134 vec->push_back(32.0);
Null reference error exception class.
#define TEST_ASSERT(v1)
Assert the given statement is true.
bool nonnull(const std::shared_ptr< T > &p)
Returns true if p.get()!=NULL.
bool is_null(const std::shared_ptr< T > &p)
Returns true if p.get()==NULL.
void initialize(const RCP< ObjType > &obj)
. Initialize using a non-const object. Allows both const and non-const access to the contained object...
#define TEST_THROW(code, ExceptType)
Assert that the statement 'code' throws the exception 'ExceptType' (otherwise the test fails)...
bool isConst() const
Returns true if const-only access to the object is allowed.
TEUCHOS_UNIT_TEST(ConstNonconstObjectContainer, create)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
RCP< const ObjType > getConstObj() const
Get an RCP to the const contained object.
Simple class supporting the "runtime protection of const" idiom.
Smart reference counting pointer class for automatic garbage collection.
RCP< ObjType > getNonconstObj() const
Get an RCP to the non-const contained object.
Null reference error exception class.