StackOverflow Questions for Tag: std-span

ollydbg23
ollydbg23

Reputation: 1230

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

Score: 0

Views: 194

Answers: 2

Read More
ollydbg23
ollydbg23

Reputation: 1230

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

Score: 1

Views: 159

Answers: 2

Read More
ollydbg23
ollydbg23

Reputation: 1230

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

Score: 3

Views: 1176

Answers: 2

Read More
bradgonesurfing
bradgonesurfing

Reputation: 32202

How to construct a span from std::iota?

Score: 1

Views: 510

Answers: 2

Read More
Aykhan Hagverdili
Aykhan Hagverdili

Reputation: 29985

How to make span of spans

Score: 3

Views: 3484

Answers: 3

Read More
Martin Perry
Martin Perry

Reputation: 9527

Custom std::vector wrapper with view support

Score: 0

Views: 78

Answers: 0

Read More
MarkB
MarkB

Reputation: 1988

Why can logical constness only be added to a std::span of const pointers?

Score: 1

Views: 830

Answers: 1

Read More
jwezorek
jwezorek

Reputation: 9545

What's the best way to pass a r-value/temporary collection to a function taking a std::span?

Score: 5

Views: 1048

Answers: 1

Read More
SWdV
SWdV

Reputation: 1989

Why does std::span lack cbegin and cend methods?

Score: 14

Views: 844

Answers: 1

Read More
Simog
Simog

Reputation: 313

Create std::string from std::span of unsigned char

Score: 6

Views: 6092

Answers: 1

Read More
jwd
jwd

Reputation: 11144

How to initialize std::span<const T*>? Problems with const-ness

Score: 3

Views: 1717

Answers: 1

Read More
gonidelis
gonidelis

Reputation: 1063

Is std::span a view?

Score: 5

Views: 2211

Answers: 1

Read More
digito_evo
digito_evo

Reputation: 3682

How to pass an empty span object?

Score: 0

Views: 3292

Answers: 1

Read More
digito_evo
digito_evo

Reputation: 3682

Where to use std::span?

Score: 2

Views: 2632

Answers: 1

Read More
user542101
user542101

Reputation: 103

Is using std::span into an std::vector after push_back is called undefined behavior

Score: 4

Views: 1512

Answers: 2

Read More
Erunehtar
Erunehtar

Reputation: 1703

How to make class compatible with std::span constructor that takes a range?

Score: 2

Views: 1303

Answers: 1

Read More
Phil Rosenberg
Phil Rosenberg

Reputation: 1809

Cannot satisfy C++ range requirements custom container

Score: 5

Views: 583

Answers: 1

Read More
ofo
ofo

Reputation: 1332

Can std::span iterators outlive the span object they are created from?

Score: 5

Views: 836

Answers: 1

Read More
NoSenseEtAl
NoSenseEtAl

Reputation: 30128

Why C++20 knows how to hash string_view, but does not know how to hash span<char>?

Score: 6

Views: 1072

Answers: 1

Read More
Carsten
Carsten

Reputation: 11636

Is it possible to construct a `std::span` from a view in C++20?

Score: 6

Views: 3974

Answers: 2

Read More
PreviousPage 3Next