42 #ifndef TEUCHOS_ARRAY_ARG_HPP 43 #define TEUCHOS_ARRAY_ARG_HPP 46 #include "Teuchos_Assert.hpp" 177 template<
int N,
class T>
181 ArrayArg( T array[] ) { std::copy( array, array+N, array_ ); }
187 operator T* () {
return array_; }
211 T array[] = { t1, t2 };
222 T array[] = { t1, t2, t3 };
233 T array[] = { t1, t2, t3, t4 };
244 T array[] = { t1, t2, t3, t4, t5 };
255 T array[] = { t1, t2, t3, t4, t5, t6 };
261 #endif // TEUCHOS_ARRAY_ARG_HPP T * operator()()
Return a const pointer to the internal array.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Utility class that allows arrays to be passed into argument list.
ArrayArg(T array[])
Basic constructor taking a copy of the array of length N.
TEUCHOS_DEPRECATED ArrayArg< 1, T > arrayArg(T t1)
Return an array with 1 member.