partial-specialization
Specializing a class template constructor
I\'m messing around with template specialization and I ran into a problem with trying to specialize the constructor based on what policy is used. Here is the code I am trying to get to work.[详细]
2022-12-27 05:49 分类:问答specialize a member template without specializing its parent
I have a class template nested inside another template. Partially specializing it is easy: I just declare another template< … > block inside its parent.[详细]
2022-12-15 08:32 分类:问答specializing functions on stl style container types
If i have a type T, what is a useful way to inspect it at compile time to see whether its an STL-style container (for an arbitrary value type) or not?[详细]
2022-12-14 13:11 分类:问答C++ template partial specialization - specializing one member function only
Bumped into another templates problem: The problem: I want to partially specialize a container-class (foo) for the case that the objects are pointers, and i want to specialize only the delete-method.[详细]
2022-12-11 15:48 分类:问答C++ template specialization via a base class
I want to be able to make the compiler shout when i call a constructor of foo with a class that is NOT derived from _base*. The current code allows only for foo<_base*> itself. Any[详细]
2022-12-09 19:43 分类:问答