共用方式為


set::const_pointer

A type that provides a pointer to a const element in a set.

typedef typename allocator_type::const_pointer const_pointer;

Remarks

A type const_pointer cannot be used to modify the value of an element.

In most cases, a const_iterator should be used to access the elements in a const set object.

Requirements

Header: <set>

Namespace: std

See Also

Reference

set Class

Standard Template Library