StackOverflow Questions for Tag: std-span

certo
certo

Reputation: 13

Extracting data from a buffer using ispanstream doesn´t copy the value across when streaming to a bigger variable

Score: 1

Views: 178

Answers: 1

Read More
jh0427
jh0427

Reputation: 71

What is the modern C++ way of handling multi-channel data using span?

Score: 1

Views: 100

Answers: 0

Read More
Aykhan Hagverdili
Aykhan Hagverdili

Reputation: 29985

How do you do bounds checking with std span?

Score: 6

Views: 2322

Answers: 3

Read More
tuket
tuket

Reputation: 3951

Simplest way to assign std::span to std::vector

Score: 14

Views: 12973

Answers: 4

Read More
code muncher
code muncher

Reputation: 1682

What's the purpose of std::dynamic_extent in std::span

Score: 5

Views: 1302

Answers: 2

Read More
Mutating Algorithm
Mutating Algorithm

Reputation: 2758

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

Score: 1

Views: 172

Answers: 1

Read More
phinz
phinz

Reputation: 1459

Is a range-based loop over a default constructed std::span undefined behavior?

Score: 3

Views: 118

Answers: 0

Read More
ByteEater
ByteEater

Reputation: 1161

Make function template of span<auto> accept collections with inferrence of element type at call sites

Score: 0

Views: 63

Answers: 0

Read More
Carson
Carson

Reputation: 3129

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

Score: 7

Views: 1222

Answers: 1

Read More
Tom Gebel
Tom Gebel

Reputation: 805

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

Score: 18

Views: 12797

Answers: 3

Read More
Jan Schultke
Jan Schultke

Reputation: 39869

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

Score: 4

Views: 650

Answers: 1

Read More
FrankM
FrankM

Reputation: 1117

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

Score: 16

Views: 989

Answers: 3

Read More
SRSR333
SRSR333

Reputation: 276

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

Score: 0

Views: 201

Answers: 1

Read More
Nico Engels
Nico Engels

Reputation: 457

How to use span to wrap up command line args

Score: 2

Views: 2210

Answers: 2

Read More
phinz
phinz

Reputation: 1459

What is the idiomatic way to create a fixed size std::array from a fixed size std::span?

Score: 5

Views: 834

Answers: 3

Read More
Maks Verver
Maks Verver

Reputation: 1127

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

Score: 16

Views: 782

Answers: 1

Read More
sam
sam

Reputation: 866

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

Score: 1

Views: 271

Answers: 1

Read More
cbhattac
cbhattac

Reputation: 273

C++20 std::span: Uses of converting constructor

Score: 4

Views: 840

Answers: 1

Read More
cbhattac
cbhattac

Reputation: 273

Why does C++ span's C style array constructor need type_identity_t?

Score: 4

Views: 233

Answers: 2

Read More
digito_evo
digito_evo

Reputation: 3682

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

Score: 1

Views: 447

Answers: 1

Read More
PreviousPage 2Next