50 static_assert( ViewOf<Kokkos::View<double , execution_space>,
double>);
51 static_assert( ViewOf<Kokkos::View<double[5] , execution_space>,
double>);
52 static_assert( ViewOf<Kokkos::View<double* , execution_space>,
double>);
53 static_assert( ViewOf<Kokkos::View<double** , execution_space>,
double>);
54 static_assert( ViewOf<Kokkos::View<const double*, execution_space>,
const double>);
55 static_assert(! ViewOf<Kokkos::View<const double*, execution_space>,
double>);
56 static_assert(! ViewOf<Kokkos::View<int , execution_space>,
double>);
57 static_assert(! ViewOf< double , double>);
65 using int_0d_view_t = Kokkos::View<int , execution_space>;
66 using int_1d_view_t = Kokkos::View<int* , execution_space>;
67 using int_2d_view_t = Kokkos::View<int**, execution_space>;
69 static_assert( ViewOfRank<int_0d_view_t, 0>);
70 static_assert(! ViewOfRank<int_0d_view_t, 1>);
72 static_assert( ViewOfRank<int_1d_view_t, 1>);
73 static_assert(! ViewOfRank<int_1d_view_t, 2>);
75 static_assert(! ViewOfRank<int_2d_view_t, 1>);
76 static_assert( ViewOfRank<int_2d_view_t, 2>);