python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
C++ 17 Expand a Fold Expression (as pairs of values)
I am writing some code to experiment with fold expressions.
I don't think my approach to solving this problem is the best possible approach.
I am trying to write a function which "does something&...
FreelanceConsultant
Votes: 0
Answers: 3
Enumerating a pack
I don't quite understand the base trick from Daisy Hollman's talk:
https://youtu.be/15etE6WcvBY?t=2670
Enumerating a pack using c++20 lamdas with explicit template arguments.
#include <iostream>...
Oliver Schönrock
Votes: 0
Answers: 2
Metafunction to check if all parameter pack arguments are the same
I'm new to template metaprogramming. I was looking for a metafunction to check if parameter pack arguments are of a certain type (C++11 required). For this I use:
template<typename ...Ts>
void f...
glades
Votes: 0
Answers: 2
Adjust array inside struct according to parameter pack length (passed into constructor)
I want to create a constexpr struct which holds a number of states in an array, represented by state_type_t. The struct should be created dynamically via a parameter pack. My problem is that I don't k...
glades
Votes: 0
Answers: 0