BSLMF_METAINT_TO_INT

Extract the compile-time integer value from a MetaInt expression.

Synopsis

Declared in <bslmf_metaint.h>

#define BSLMF_METAINT_TO_INT(expr)

Description

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.

Parameters

NameDescription
exprMetaInt expression whose compile-time value is extracted