Template Partial Specialization - any real-world example?
问题 I am pondering about partial specialization . While I understand the idea, I haven't seen any real-world usage of this technique. Full specialization is used in many places in STL so I don't have a problem with that. Could you educate me about a real-world example where partial specialization is used? If the example is in STL that would be superior! 回答1: C++0x comes with unique_ptr which is a replacement for auto_ptr which is going to be deprecated. If you use unique_ptr with an array type,