Collapse the table of content
Expand the table of content


Defines whether Checked Iterators are enabled. If defined as 1, unsafe iterator use causes a runtime error and the program is terminated. If defined as 0, checked iterators are disabled. In debug mode, the default value for _SECURE_SCL is 1, meaning checked iterators are enabled. In release mode, the default value for _SECURE_SCL is 0.

Important note Important

Use _ITERATOR_DEBUG_LEVEL to control _SECURE_SCL. For more information, see _ITERATOR_DEBUG_LEVEL.

To enable checked iterators, set _SECURE_SCL to 1:

#define _SECURE_SCL 1

To disable checked iterators, set _SECURE_SCL to 0:

#define _SECURE_SCL 0

For information on how to disable warnings about checked iterators, see _SCL_SECURE_NO_WARNINGS.

© 2016 Microsoft