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);
Replacement for std::vector that is compatible with the Teuchos Memory Management classes.
void push_back(const value_type &x)
int size(const Comm< Ordinal > &comm)
Get the number of processes in the communicator.
Simple wrapper class for raw pointers to single objects where no persisting relationship exists.
Smart reference counting pointer class for automatic garbage collection.
Concrete serial communicator subclass.
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.