_SECURE_SCL
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at _SECURE_SCL.
Defines whether Checked Iterators are enabled. By default, checked iterators are enabled in Debug builds, and disabled in Retail builds.
Direct use of the |
When checked iterators are enabled, unsafe iterator use causes a runtime error and the program is terminated. To enable checked iterators, set _ITERATOR_DEBUG_LEVEL to 1 or 2. This implies a _SECURE_SCL setting of 1, or enabled:
#define _ITERATOR_DEBUG_LEVEL 1
To disable checked iterators, set _ITERATOR_DEBUG_LEVEL to 0. This implies a _SECURE_SCL setting of 0, or disabled:
#define _ITERATOR_DEBUG_LEVEL 0
For information on how to disable warnings about checked iterators, see _SCL_SECURE_NO_WARNINGS.
_ITERATOR_DEBUG_LEVEL
Checked Iterators
Debug Iterator Support
Safe Libraries: C++ Standard Library