Classes | Typedefs | Functions
util::flags::details Namespace Reference

Classes

struct  SmallestUIntType
 

Typedefs

template<unsigned int NBits>
using smallestUInt_t = typename SmallestUIntType< NBits >::type
 The smallest integral type accommodating NBits bits. More...
 

Functions

template<typename Storage >
constexpr unsigned int computePages (unsigned int bits)
 Returns the number of Storage variables needed to hold that many bits. More...
 
template<typename Storage >
constexpr Storage makeBits (Index_t index)
 Returns a set of bits with only the one at the specified index set. More...
 

Typedef Documentation

template<unsigned int NBits>
using util::flags::details::smallestUInt_t = typedef typename SmallestUIntType<NBits>::type

The smallest integral type accommodating NBits bits.

Definition at line 71 of file BitMask.h.

Function Documentation

template<typename Storage >
constexpr unsigned int util::flags::details::computePages ( unsigned int  bits)

Returns the number of Storage variables needed to hold that many bits.

template<typename Storage >
constexpr Storage util::flags::details::makeBits ( Index_t  index)

Returns a set of bits with only the one at the specified index set.

Definition at line 79 of file BitMask.h.

80  { return Storage(1) << index; }