variadic-templates
implementing a variadic zip function with const-correctness
I\'m trying to implement a zip function.zip\'s parameters are each wrapped<Ti>, where Ti varies from parameter to parameter.[详细]
2023-03-18 21:16 分类:问答Comparing variadic templates
If I have two variadic template arguments, A and B, how can I ensure at compile-time that the types of all of the members ofA are also the types of a subset of B (in the same order)?[详细]
2023-03-18 00:32 分类:问答Variadic templates question
I\'m trying to write a generic code for comparing std::functions using its target() template method. Here is my non-generic sample code:[详细]
2023-03-17 16:11 分类:问答Template specialization for an empty parameter pack
I have a variadic template function which calls itself to determine the largest number in a list (constituted by the templatized arguments). I am trying to make a specialization for when the parameter[详细]
2023-03-14 18:08 分类:问答C++0x: applying function over multiple iterators
I\'m trying to write a function that would map a function over multiple iterators. It would be something like[详细]
2023-03-13 04:28 分类:问答Pretty-print std::tuple
This is a follow-up to my previous question on pretty-printing STL containers, for which we managed to develop a very elegant and fully general solution.[详细]
2023-03-10 19:21 分类:问答Position of a type in a variadic template parameter pack
I\'m giving C++0x a try and I was wondering how to solve the following problem that came up. I\'ve got a variadic template class:[详细]
2023-03-06 23:38 分类:问答How to implement folding with variadic templates
I have an almost working solution.However, it fails to compile some simple cases, and I can\'t decipher the error message.[详细]
2023-03-06 23:31 分类:问答Create static array with variadic templates
There was an answer on stackoverflow (which I can\'t seem to find anymore) which demonstrated how a variadic template can be used in C++11 to create a static array at compile time:[详细]
2023-03-06 20:50 分类:问答Deduce parameter pack w/out passing it explicitly as a template parameter?
Forgive any ignorance of C++ type deduction in this, but I\'d like to be able to carry around the parameter pack\'s definition, so that later I could test for an inner type.Is this possible?Something[详细]
2023-03-06 07:44 分类:问答