LDK::Meta::HalfwayPowerOf2< Size > Struct Template Reference
[Template metaprogramming utility routinesTemplate metaprogramming utility routines]

A compile-time test to if a number is a power of 2 plus (itself divided by two). More...

#include <LDK/TemplateMeta.h>


Public Types

enum  { value }


Detailed Description

template<int Size>
struct LDK::Meta::HalfwayPowerOf2< Size >

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

Definition at line 140 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