WPILibC++  2020.3.2-60-g3011ebe
wpi::RoundUpToPowerOfTwo< N > Struct Template Reference

RoundUpToPowerOfTwo - This is a helper template that rounds N up to the next power of two (which means N itself if N is already a power of two). More...

#include <SmallPtrSet.h>

Public Types

enum  { Val = RoundUpToPowerOfTwoH<N, (N&(N-1)) == 0>::Val }
 

Detailed Description

template<unsigned N>
struct wpi::RoundUpToPowerOfTwo< N >

RoundUpToPowerOfTwo - This is a helper template that rounds N up to the next power of two (which means N itself if N is already a power of two).


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