我是 cplusplus 的新手,感谢您回答我的问题。
stl_list.h 中的段落内容如下:
// NOTA BENE
// The stored instance is not actually of "allocator_type"'s
// type. Instead we rebind the type to
// Allocator<List_node<Tp>>, which according to [20.1.5]/4
// should probably be the same. List_node<Tp> is not the same
// size as Tp (it's two pointers larger), and specializations on
// Tp may go unused because List_node<Tp> is being bound
// instead.
//
// We put this to the test in the constructors and in
// get_allocator, where we use conversions between
// allocator_type and _Node_alloc_type. The conversion is
// required by table 32 in [20.1.5].
- 我在哪里可以找到 [20.1.5]/4 和 table 32 这样的东西?
- 为什么 Tp 上的专业化可能会被闲置?这实际上意味着什么?(如果您能提供一段简单的源代码和简单的解释,我将不胜感激。)
- 如果人们确实需要专业化怎么办,有没有办法破解它??:)