45#ifndef ARRAY_CONVERSIONS_UNIT_TEST_HELPERS
46#define ARRAY_CONVERSIONS_UNIT_TEST_HELPERS
67 RCP<T> data = rcp(
new T(as<T>(i)));
101 *a_out[i] = as<T>(i);
TEUCHOS_ORDINAL_TYPE Teuchos_Ordinal
Replacement for std::vector that is compatible with the Teuchos Memory Management classes.
void push_back(const value_type &x)
Simple wrapper class for raw pointers to single objects where no persisting relationship exists.
Smart reference counting pointer class for automatic garbage collection.
void testArrayViewOutput(const ArrayView< const Ptr< T > > &a_out)
Array< RCP< T > > generateArrayRcp(const Teuchos_Ordinal n_in)
T testArrayViewInput(const ArrayView< const Ptr< const T > > &a_in)
Array< RCP< T > > generateArrayRcpGen(const Teuchos_Ordinal n_in)
TypeTo as(const TypeFrom &t)
Convert from one value type to another.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
This structure defines some basic traits for a scalar field type.