cds  1.4.0
Public Types
cds::beans::Exponent2< N > Struct Template Reference

#include <cds/numtraits.h>

Public Types

enum  { native = N, base = 2, result = details::Exponent2Helper< N / 2, N % 2 >::result + 1 }
 

Detailed Description

template<int N>
struct cds::beans::Exponent2< N >

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


The documentation for this struct was generated from the following file:

cds 1.4.0 Developed by Maxim Khiszinsky aka khizmax 2007 - 2012
Autogenerated Mon May 20 2013 00:37:55 by Doxygen 1.8.3.1