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


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

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
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
What is an mdspan, and what is it used for?...


c++c++-faqstd-spanmdspan

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
What is the idiomatic way to create a fixed size std::array from a fixed size std::span?...


c++c++20stdarraystd-span

Read More
Does C++ allow comparison between std::span::iterators when one span is a subspan of the other?...


c++language-lawyerc++20std-span

Read More
Why do I need to pass std::span for a string argument when using std::thread in C++?...


c++multithreadingc++20std-span

Read More
What is the difference between the two overloads of std::span::subspan()...


c++c++20std-span

Read More
adding member function substr for std::span<T> which imitates the string_view::substr...


c++c++20substrstd-span

Read More
template argument deduce error for raw C string literal but works for std::string_view...


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

Read More
what is the way to remove the first element from a std::span<T>?...


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

Read More
How to make span of spans...


c++c++20std-span

Read More
Emscripten and C++ 20...


c++c++20webassemblyemscriptenstd-span

Read More
BackNext