Extract the compile-time integer value from a MetaInt expression.
Declared in <bslmf_metaint.h>
#define BSLMF_METAINT_TO_INT(expr)
Given an integral value, V, and an expression, expr, of type bslmf::MetaInt<V>, this macro returns a compile-time constant with value, V. The expression, expr, is not evaluated at run-time.
| Name | Description |
|---|---|
| expr | MetaInt expression whose compile-time value is extracted |