list::const_pointer

提供了指向列表中的一个 const 元素的类型。

typedef typename Allocator::const_pointer const_pointer;

备注

类型 const_pointer 不能用于修改元素的值。

在大多数情况下,应使用 迭代器 访问组件在列表对象。

要求

标头: <list>

命名空间: std

请参见

参考

list Class

标准模板库