|
cds
1.4.0
|
#include <cds/numtraits.h>
Public Types | |
| enum | { native = N, base = 2, result = details::Exponent2Helper< N / 2, N % 2 >::result + 1 } |
Compile-time computing of log2(N)
If N = 2**k for some natural k then Exponent2<N>::result = k If N != 2**k for any natural k then compile-time error has been encountered