Template Struct IsPowerOfTwoStatic

Template Parameter Order

  1. size_t val

Struct Documentation

template<size_t val>
struct IsPowerOfTwoStatic

Type trait that determines if the template parameter val is a power of two during compile time.

Template Parameters:

val

Public Static Attributes

static const bool res = !(val & 0x01) && IsPowerOfTwoStatic<(val >> 1)>::res

The value that contains the result of the calculation.