You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many of our APIs have a const vector passed by reference (i.e. const std::vector<T> &). We can make these APIs more flexible (i.e. able to take a wider range of arguments) if we switch to std::span<const T>. Passing a std::vector will still work so it should just be a case of changing the declarations and perhaps some of the logic related to handling the argument in the implementation.
The text was updated successfully, but these errors were encountered:
Many of our APIs have a
const vector
passed by reference (i.e.const std::vector<T> &
). We can make these APIs more flexible (i.e. able to take a wider range of arguments) if we switch tostd::span<const T>
. Passing astd::vector
will still work so it should just be a case of changing the declarations and perhaps some of the logic related to handling the argument in the implementation.The text was updated successfully, but these errors were encountered: