共用方式為


map::const_pointer

提供指標對應中的 const 項目的型別。

typedef typename allocator_type::const_pointer const_pointer;

備註

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

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

需求

標題: <map>

命名空間: std

請參閱

參考

map Class

標準樣板程式庫