Search code examples
What is a "span" and when should I use one?...


c++c++20c++-faqcpp-core-guidelinesstd-span

Read More
C++ - std::initializer_list vs std::span...


c++c++20idiomsstd-spanstdinitializerlist

Read More
Is comparing two spans pointing to the same container well defined?...


c++iteratorstd-span

Read More
Why does std::span::operator[] not implement a const reference?...


c++referenceconst-referencestd-span

Read More
Is dereferencing std::span::end always undefined?...


c++iteratorlanguage-lawyerundefined-behaviorstd-span

Read More
Does std::span<T> remain valid and point to the new std::vector<T> upon move of a std::v...


c++c++20stdvectorstdmovestd-span

Read More
Emscripten and C++ 20...


c++c++20webassemblyemscriptenstd-span

Read More
How can I reference a vector<Derived> with a span<Base>...


c++inheritancevectorreferencestd-span

Read More
Cannot construct `std::span<T>` from `const std::vector<T>&`...


c++c++20stdvectorstd-span

Read More
What is an mdspan, and what is it used for?...


c++c++-faqstd-spanmdspan

Read More
Can you convert int*[N] to std::span<const int * const>?...


c++clangc++23compiler-bugstd-span

Read More
Why extent of std::span created from a static array considered to have a dynamic_extent?...


c++arraysc++20std-spandynamic-extent

Read More
Is it possible to construct a mdspan from a span?...


c++c++23std-spanmdspan

Read More
std::span of a vector<bool> doesn't compile...


c++c++20std-spanstdvectorbool

Read More
std::span on containers of contiguous data...


c++stdvectorstdarraystd-span

Read More
Why can I not pass std::span<int> to a function template taking std::span<const T>?...


c++templatestype-deductionstd-span

Read More
Create span of string_views from C string array...


c++c++20string-viewstd-span

Read More
How to pass an rvalue std::vector to a function accepting std::span...


c++c++20dangling-pointerstd-span

Read More
Is it possible to recover the actual index of elements in a `std::span`?...


c++c++20stdvectorstd-span

Read More
Extracting data from a buffer using ispanstream doesn´t copy the value across when streaming to...


c++c++23std-span

Read More
How do you do bounds checking with std span?...


c++c++20outofrangeexceptionstd-span

Read More
Simplest way to assign std::span to std::vector...


c++stdstdvectorstd-span

Read More
What's the purpose of std::dynamic_extent in std::span...


c++stdstd-span

Read More
Instantiating a function template with a std::span<T> parameter...


c++templatesc++20std-span

Read More
How to convert `const std::vector<T*>` into `std::span<const T*>`...


c++c++20stdstd-span

Read More
Why in particular should I rather pass a std::span than a std::vector& to a function?...


c++vectorc++20std-span

Read More
Can't construct std::span<int> from temporary std::array<int>...


c++initializationc++20stdarraystd-span

Read More
Why can T not be deduced for std::span<T> when passing a std::vector?...


c++templatesc++20template-argument-deductionstd-span

Read More
Why does `std::span` require an explicit constructor to use in a templated function?...


c++templatesc++20c++-conceptsstd-span

Read More
How to use span to wrap up command line args...


c++c++20string-viewstd-span

Read More
BackNext