Loading [MathJax]/extensions/tex2jax.js
WPILibC++ 2025.3.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
wpi::pointer_union_detail Namespace Reference

Classes

struct  GetFirstType
 Find the first type in a list of types. More...
 
class  PointerUnionMembers
 
class  PointerUnionMembers< Derived, ValTy, I >
 
class  PointerUnionMembers< Derived, ValTy, I, Type, Types... >
 
class  PointerUnionUIntTraits
 Provide PointerLikeTypeTraits for void* that is used by PointerUnion for the template arguments. More...
 

Functions

constexpr int bitsRequired (unsigned n)
 Determine the number of bits required to store integers with values < n.
 
template<typename... Ts>
constexpr int lowBitsAvailable ()
 

Function Documentation

◆ bitsRequired()

int wpi::pointer_union_detail::bitsRequired ( unsigned n)
constexpr

Determine the number of bits required to store integers with values < n.

This is ceil(log2(n)).

◆ lowBitsAvailable()

template<typename... Ts>
int wpi::pointer_union_detail::lowBitsAvailable ( )
constexpr