CUB  
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | List of all members
PowerOfTwo< N > Struct Template Reference

Detailed description

template< int N>
struct PowerOfTwo< N >

Statically determine if N is a power-of-two.

Public Types

enum  { VALUE = ((N & (N - 1)) == 0) }
 

Member Enumeration Documentation

template<int N>
anonymous enum
Enumerator
VALUE 

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