mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
16a6a41690
* GSL_LIKELY/_UNLIKELY always contextually convert their argument to bool. * Add macro GSL_ASSUME(cond) to inform the optimizer that the predicate cond must hold. * Reimplement Expects & Ensures as expressions for flexibility and correctness. (Think about "if (cond1) Expects(cond2); else goto fail;") * Expects and Ensures GSL_ASSUME their predicate when GSL_UNENFORCED_ON_CONTRACT_VIOLATION is defined. |
||
---|---|---|
.. | ||
gsl | ||
gsl_algorithm | ||
gsl_assert | ||
gsl_byte | ||
gsl_util | ||
multi_span | ||
span | ||
string_span |