共用方式為


list::const_pointer

提供指標在清單內 const 項目的型別。

typedef typename Allocator::const_pointer const_pointer;

備註

型別 const_pointer 不能用來修改項目的值。

在大部分情況下,您應該使用 iterator 存取清單中物件的項目。

需求

標題: <list>

命名空間: std

請參閱

參考

list Class

標準樣板程式庫