22 #ifndef SIRIUS_UTILS_GSL_H_ 23 #define SIRIUS_UTILS_GSL_H_ 36 template <
typename SmartPtr>
38 return gsl::span<typename SmartPtr::element_type>(smart_ptr.get(),
45 #endif // SIRIUS_UTILS_GSL_H_ Definition: exception.h:27
auto MakeSmartPtrArraySpan(const SmartPtr &smart_ptr, const Size &size)
Make a GSL span from a smart pointer pointing to an array of data.
Definition: gsl.h:37
int CellCount() const
Definition: types.h:77
Data class that represents the size of an image.
Definition: types.h:38