ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::NC Struct Reference

Description:

This tag-type is used across ALib to indicate that no check of the input parameters should be performed. Methods affected expose a template parameter named TCheck which usually defaults to this types' counterpart CHK.

For example, various methods of the ALib string types, which perform range-checks on string-indices, use this template parameter. With debug-compilations the checks are still made, and if they fail, the parameters are not corrected, but instead an ALib assertion is raised. In release builds, however, no checks are performed, which improves execution speed.

A programmer does not notice the existence of this option, unless he consults the corresponding method's reference documentation, because of the default-value CHK. Only with code critical to performance or size, the parameter might be crucial to give.

Note
This type, as well as sibling type CHK should rather reside in namespace alib::lang, but was placed in the libraries root namespace for convenience and shortness of string-concatenation sequences of the using-code.

Definition at line 30 of file chk_nc.inl.

Inheritance diagram for alib::NC:
[legend]
Collaboration diagram for alib::NC:
[legend]

The documentation for this struct was generated from the following file: