Recently I’ve gotten suggestions to use span<T>
‘s in my code, or have seen some answers here on the site which use span
‘s – supposedly some kind of container. But – I can’t find anything like that in the C++17 standard library.
So what is this mysterious span<T>
, and why (or when) is it a good idea to use it if it’s non-standard?