Extract the compile‐time Boolean value from a MetaInt expression.
Synopsis
Declared in <bslmf_metaint.h>
#define BSLMF_METAINT_TO_BOOL(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, true or false, according to the Boolean value of V. The expression, expr, is not evaluated at run‐time.
Parameters
Name |
Description |
expr |
|
Created with MrDocs