WPILibC++  2019.3.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
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: