LDK::Meta::PowerOf2< N > Struct Template Reference
[Template metaprogramming utility routinesTemplate metaprogramming utility routines]

A compile-time loop to test if a number is a power of 2. More...

#include <LDK/TemplateMeta.h>


Public Types

enum  { value = !(N2) ? PowerOf2<(int)((N/2.0)+0.5)>::value : false }


Detailed Description

template<int N>
struct LDK::Meta::PowerOf2< N >

Access the result with the value member e.g. PowerOf2<16>::value will be true, but PowerOf2<15>::value will be false.

Definition at line 110 of file TemplateMeta.h.


The documentation for this struct was generated from the following file:
Generated on Fri Aug 17 18:32:28 2007 for LDK by  doxygen 1.5.1