共用方式為


_HAS_ITERATOR_DEBUGGING

Defines whether the iterator debugging feature is enabled in a debug build. By default, iterator debugging is enabled. For more information, see Debug Iterator Support.

Remarks

To enable iterator debugging in debug builds, set _HAS_ITERATOR_DEBUGGING to 1:

#define _HAS_ITERATOR_DEBUGGING 1

_HAS_ITERATOR_DEBUGGING cannot be set to 1 in retail builds.

To disable iterator debugging in debug builds, set _HAS_ITERATOR_DEBUGGING to 0:

#define _HAS_ITERATOR_DEBUGGING 0

See Also

Concepts

Debug Iterator Support

Checked Iterators

Safe Libraries: Standard C++ Library