diff --git a/core/src/Kokkos_View.hpp b/core/src/Kokkos_View.hpp index 098141a8c96..3c1c8fc5c0d 100644 --- a/core/src/Kokkos_View.hpp +++ b/core/src/Kokkos_View.hpp @@ -103,14 +103,15 @@ constexpr bool is_assignable(const Kokkos::View& dst, namespace Impl { template struct BasicViewFromTraits { - using view_traits = ViewTraits; + using view_traits = ViewTraits; using mdspan_view_traits = MDSpanViewTraits; - using element_type = typename view_traits::value_type; - using extents_type = typename mdspan_view_traits::extents_type; - using layout_type = typename mdspan_view_traits::mdspan_layout_type; - using accessor_type = typename mdspan_view_traits::accessor_type; + using element_type = typename view_traits::value_type; + using extents_type = typename mdspan_view_traits::extents_type; + using layout_type = typename mdspan_view_traits::mdspan_layout_type; + using accessor_type = typename mdspan_view_traits::accessor_type; - using type = BasicView; + using type = + BasicView; }; } // namespace Impl @@ -148,16 +149,18 @@ class View : public Impl::BasicViewFromTraits::type { public: // typedefs originally from ViewTraits - using data_type = DataType; - using traits = ViewTraits; - using view_tracker_type = Impl::ViewTracker; - using array_layout = typename traits::array_layout; - using device_type = typename traits::device_type; - + using data_type = DataType; + using traits = ViewTraits; + using const_data_type = typename traits::const_data_type; + using non_const_data_type = typename traits::non_const_data_type; + using view_tracker_type = Impl::ViewTracker; + using array_layout = typename traits::array_layout; + using device_type = typename traits::device_type; + // typedefs from BasicView - using mdspan_type = typename base_t::mdspan_type; - using pointer_type = typename base_t::data_handle_type; - using reference_type = typename base_t::reference; + using mdspan_type = typename base_t::mdspan_type; + using pointer_type = typename base_t::data_handle_type; + using reference_type = typename base_t::reference; //---------------------------------------- /** \brief Compatible view of array of scalar types */