3.3.4.24. Function MakeSmartPtrArraySpan

3.3.4.24.1. Function Documentation

template <typename SmartPtr>
auto sirius::utils::MakeSmartPtrArraySpan(const SmartPtr &smart_ptr, const Size &size)

Make a GSL span from a smart pointer pointing to an array of data.

Return
span view of the array
Parameters
  • smart_ptr: smart pointer to array to wrap as span
  • size: size of the array