我已经在这个问题上浪费了太多时间了。我正在尝试为节点和它们指向的类型使用两个不同的分配器来实现单个链表。以下代码一直在提示我在SingleListNode定义中部分特化了friend类声明:namespacecontainers{templateclassSingleList;//forwarddeclarationtemplate>classSingleListNode{templatefriendclassSingleList;//partiallyspecialized???//classdefinition};template,typenameNAlloc=std::alloc