WPILibC++ 2024.1.1-beta-4
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 </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/llvm/include/wpi/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).

Member Enumeration Documentation

◆ anonymous enum

template<unsigned N>
anonymous enum
Enumerator
Val 

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