variadic-templates
is_same returning false when comparing class template instantiation with its base class template?
*Edit: Somehow I thought the compiler was creating B just as A<int, int, string>, leading to my assumption about how is_same should evaluate them, regardless of inheritance/derivation.My bad :(S[详细]
2023-03-06 01:16 分类:问答Expanding parameter pack containing initializer_list to constructor
I intend to use shared_ptr quite a bit in an upcoming project, so (not being aware of std::make_shared) I wanted to write a variadic template function spnew<T>(...) as a shared_ptr-returning sta[详细]
2023-03-01 02:40 分类:问答Generalizing for_each over a tuple to accept a variable number of arguments
Currently, I have: template <unsigned I, unsigned N, typename Tuple, typename UnaryFunction> struct for_;[详细]
2023-02-24 08:40 分类:问答What is wrong with this variadic templates example?
The base class is : #include <memory> namespace cb{ template&l开发者_Python百科t; typename R, typename ... Args >[详细]
2023-02-24 06:21 分类:问答What is the meaning of "... ..." token? i.e. double ellipsis operator on parameter pack
While browsing through gcc\'s current implementation of new C++11 headers, I stumbled upon "......" token. You can check, that the following code compiles fine [via godbolt.org].[详细]
2023-02-23 12:19 分类:问答split variadic template arguments
How do I split variadic template arguments i开发者_Python百科n two halves? Something like: template <int d> struct a {[详细]
2023-02-20 14:01 分类:问答Is it possible to "store" a template parameter pack without expanding it?
I was experimenting with C++0x variadic templates when I stumbled upon this issue: template < typename ...Args >[详细]
2023-02-04 22:05 分类:问答Partial template specialization with multiple template parameter packs
Continuing my journey into the world of variadic templates, I encountered another problem. Assuming the following template class:[详细]
2023-02-04 19:35 分类:问答mpl style copy_if meta-function for variadic template vector
I\'ve a meta-program that works fine with the regular boost mpl. It looks more like the following. template <class Vector, class ResultKind, class Custom>[详细]
2023-02-01 19:07 分类:问答Variadic templates
I have seen a lot of links introducing the variadic templates. But I have never seen any compilable exa开发者_JS百科mple that demonstrates this approach.[详细]
2023-01-14 02:23 分类:问答