Macro std::assume

macro assume($cond) { ... }

Assume that the condition is always true.

This may enable additional optimizations when you know better than the compiler.

If the condition is false, this is equivalent to assert in debug mode. In release mode, it will cause undefined behavior.

Examples