StackOverflow Questions for Tag: fold-expression

Vittorio Romeo
Vittorio Romeo

Reputation: 93274

Retrieve value out of "cascading ifs" fold expression

Score: 10

Views: 2103

Answers: 3

Read More
qloq
qloq

Reputation: 1275

What is wrong with my lambda in fold expression

Score: 2

Views: 64

Answers: 2

Read More
Germán Diago
Germán Diago

Reputation: 7663

Cannot expand a tuple pair in lockstep for a function call in index_sequence context

Score: 1

Views: 75

Answers: 1

Read More
bamia
bamia

Reputation: 374

Using parameter pack on nested classes to declare a tuple

Score: 2

Views: 73

Answers: 1

Read More
j00hi
j00hi

Reputation: 5931

How to expand into initializer list with fold expressions?

Score: 4

Views: 2453

Answers: 2

Read More
Amin Roosta
Amin Roosta

Reputation: 1080

How to Insert spaces in (cout << ... << args) using fold expressions?

Score: 9

Views: 1524

Answers: 1

Read More
zrb
zrb

Reputation: 891

Implementing operator less for arrays using fold expressions

Score: 7

Views: 995

Answers: 2

Read More
Andrey Rubliov
Andrey Rubliov

Reputation: 1597

Can folding expressions for variadic templates be binned, and conversion of argument list to vector used instead?

Score: 0

Views: 145

Answers: 1

Read More
Caduchon
Caduchon

Reputation: 5201

I don't understand this initialisation of an std::array of lambda with pack expansion

Score: 1

Views: 131

Answers: 2

Read More
kazbaem
kazbaem

Reputation: 3

How to create a tuple from a variadic template class and call a member function with each element as a parameter in C++?

Score: -3

Views: 111

Answers: 1

Read More
kazbaem
kazbaem

Reputation: 3

Unpacking a variadic template in C++ into a tuple in order to access the parameters with a structured binding

Score: -1

Views: 103

Answers: 1

Read More
user877329
user877329

Reputation: 6200

std::apply with branch depending on tuple element value

Score: 0

Views: 72

Answers: 0

Read More
user19179144
user19179144

Reputation: 199

How to pack variadic arguments of a template function into an array?

Score: 2

Views: 322

Answers: 2

Read More
nickeb96
nickeb96

Reputation: 789

C++17 Variadic Template Folding

Score: 26

Views: 11492

Answers: 7

Read More
Matteo Monti
Matteo Monti

Reputation: 8940

Fold expressions with operator >>

Score: 6

Views: 630

Answers: 1

Read More
jjcasmar
jjcasmar

Reputation: 1665

std::apply emplace_back with a parameter pack

Score: 0

Views: 115

Answers: 1

Read More
Gabrielle de Grimouard
Gabrielle de Grimouard

Reputation: 2005

C++17 fold expression in cout

Score: 12

Views: 5374

Answers: 2

Read More
sanitizedUser
sanitizedUser

Reputation: 1907

Print typeids of types in template parameter list

Score: 1

Views: 129

Answers: 1

Read More
PluginPenguin
PluginPenguin

Reputation: 1940

How to use a fold expression to call a chain of member functions

Score: 2

Views: 377

Answers: 1

Read More
francesco
francesco

Reputation: 7539

suppress warning "left operand of comma operator has no effect"

Score: 0

Views: 197

Answers: 1

Read More
PreviousPage 1Next