Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-08-15 01:07:31

0001 #ifndef DataFormats_Portable_interface_PortableCollection_h
0002 #define DataFormats_Portable_interface_PortableCollection_h
0003 
0004 #include "HeterogeneousCore/AlpakaInterface/interface/traits.h"
0005 
0006 namespace traits {
0007 
0008   // trait for a generic SoA-based product
0009   template <typename T, typename TDev, typename = std::enable_if_t<cms::alpakatools::is_device_v<TDev>>>
0010   class PortableCollectionTrait;
0011 
0012 }  // namespace traits
0013 
0014 // type alias for a generic SoA-based product
0015 template <typename T, typename TDev, typename = std::enable_if_t<cms::alpakatools::is_device_v<TDev>>>
0016 using PortableCollection = typename traits::PortableCollectionTrait<T, TDev>::CollectionType;
0017 
0018 #endif  // DataFormats_Portable_interface_PortableCollection_h