28 template <
class Container>
50 std::cout << myObjects.
get<
double>().
x << std::endl;
51 std::cout << myObjects.get<FadType>().
x << std::endl << std::endl;
55 std::cout << myObjects.get<
double>().
x << std::endl;
56 std::cout << myObjects.get<FadType>().
x << std::endl << std::endl;
60 std::cout << myObjects.get<
double>().
x << std::endl;
61 std::cout << myObjects.get<FadType>().
x << std::endl << std::endl;
65 std::cout << myObjects.get<
double>().
x << std::endl;
66 std::cout << myObjects.get<FadType>().
x << std::endl << std::endl;
69 bool passed = ( myObjects.get<
double>().
x == 3.0 &&
70 myObjects.get<FadType>().x.val() == 3.0 );
72 std::cout <<
"Test Passed!" << std::endl;
74 std::cout <<
"Test Failed!" << std::endl;
88 return passed ? 0 : 1;
Container class to manager template instantiations of a template class.
Sacado::Fad::DFad< double > FadType
SetFunctor(Container &c, double v)
void container_for_each_no_kokkos(TemplateContainer< TypeSeq, ObjectT > &container, const FunctorT &op)
expr expr1 expr1 expr1 c expr2 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr1 c expr2 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr1 c *expr2 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr1 c expr2 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr2 expr1 expr2 expr1 expr1 expr1 c
Sacado::mpl::apply< ObjectT, T >::type & get()
Get object corrensponding ObjectT<T>
testing::Types< VeryLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooogName, int *, MyArray< bool, 42 > > MyTypes