StackOverflow Questions for Tag: stdarray

timmy george
timmy george

Reputation: 447

How to use std::array.size() as a template parameter when a class has a non-constexpr std::array

Score: 15

Views: 899

Answers: 3

Read More
Antonio
Antonio

Reputation: 651

C++ code that compiles in gcc 9.3 but not in gcc 10.2

Score: 2

Views: 367

Answers: 3

Read More
Bertwim van Beest
Bertwim van Beest

Reputation: 1811

Which feature of C++23 allows converting std::array to std::tuple?

Score: 41

Views: 2513

Answers: 1

Read More
Fredo
Fredo

Reputation: 47

How to split std::array without copying?

Score: 1

Views: 170

Answers: 4

Read More
Alex Suo
Alex Suo

Reputation: 3129

Nested std::array of primitive type initialization to default value

Score: 2

Views: 55

Answers: 0

Read More
Zax Ftw
Zax Ftw

Reputation: 103

How to initialize static std::array with static const variable?

Score: 2

Views: 6340

Answers: 2

Read More
Raildex
Raildex

Reputation: 4765

initializing std::array with nullptr without template parameters

Score: 3

Views: 114

Answers: 2

Read More
Romain
Romain

Reputation: 21

std::span on containers of contiguous data

Score: 1

Views: 113

Answers: 1

Read More
geza
geza

Reputation: 29970

Why doesn't std::array's operator[] retain the value category of the array?

Score: 4

Views: 160

Answers: 1

Read More
tadm123
tadm123

Reputation: 8793

Converting an element of enum class type into its matching string

Score: 0

Views: 107

Answers: 2

Read More
zsliu98
zsliu98

Reputation: 1

Initialize each element of std::array from reference of another std::array

Score: 0

Views: 74

Answers: 1

Read More
einpoklum
einpoklum

Reputation: 132118

Why isn't std::array's operator==() marked constexpr?

Score: 8

Views: 935

Answers: 3

Read More
NKatUT
NKatUT

Reputation: 519

Pass nested std::array<std::array<char,M>,N> to C function taking a char**

Score: 2

Views: 89

Answers: 2

Read More
Adrian
Adrian

Reputation: 2365

Passing a std::array of unknown size to a function

Score: 155

Views: 109533

Answers: 6

Read More
einpoklum
einpoklum

Reputation: 132118

Idiom for initializing an std::array using a generator function taking the index?

Score: 7

Views: 614

Answers: 2

Read More
Oersted
Oersted

Reputation: 2734

is aliasing a plain array to an `std::array` not UB

Score: 0

Views: 176

Answers: 1

Read More
Weijun Zhou
Weijun Zhou

Reputation: 4941

Is it legal to initialize an array via a functor which takes the array itself as a parameter by reference?

Score: 13

Views: 1528

Answers: 3

Read More
Jabberwocky
Jabberwocky

Reputation: 50883

Initializing a std::array with all elements having the same value

Score: 56

Views: 34392

Answers: 8

Read More
djuwaste
djuwaste

Reputation: 21

What is the best way to initalize 2D std::array along with its rows and cols?

Score: 1

Views: 90

Answers: 2

Read More
poby
poby

Reputation: 1756

How to initialize std::array with derived object without copying?

Score: 0

Views: 120

Answers: 1

Read More
PreviousPage 1Next