ATLAS Offline Software
Loading...
Searching...
No Matches
getData.icc
Go to the documentation of this file.
1// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2#ifndef ATHDEVICEUTILS_DETAILS_GETDATA_ICC
3#define ATHDEVICEUTILS_DETAILS_GETDATA_ICC
4
5namespace AthDevice::Details {
6
7template <typename T>
8vecmem::data::vector_view<T> getData(CxxUtils::span<T> data) {
9
10 return {static_cast<vecmem::data::vector_view<T>::size_type>(data.size()),
11 data.data()};
12}
13
14} // namespace AthDevice::Details
15
16#endif // ATHDEVICEUTILS_DETAILS_GETDATA_ICC