Options¶
linq can be configured via preprocessor #defines.
These options must be defined prior to including linq.hpp, or as a global compiler define.
Example:
LINQ_NO_STL_CONTAINERS¶
If defined, linq will not include and use any STL containers,
such as std::array, std::vector and std::unordered_map.
If you're not using STL containers in your codebase anyway, you may specify enable this option to reduce compilation times.
LINQ_NO_ASSERTIONS¶
If defined, linq will not perform any assertions. The default assertion mechanism in linq is the assert() macro
from <cassert>.
You may specify a custom assertion macro by using #define LINQ_ASSERT.
Example:
Note
If you specify your own LINQ_ASSERT macro, then LINQ_NO_ASSERTIONS is overwritten, and linq
will always perform assertions using your LINQ_ASSERT macro.