3.0.0
Freundlich's C++ toolkit
Classes | Typedefs | Functions
fcppt::bit Namespace Reference

Bit operations. More...

Classes

class  mask
 A bit mask. More...
 

Typedefs

typedef unsigned shift_count
 The unsigned type representing a shift count. More...
 

Functions

template<typename Type , Type Mask>
constexpr fcppt::bit::mask< Type > mask_c () noexcept
 A bit mask from an integral constant. More...
 
template<typename Type >
constexpr fcppt::bit::mask< Type > shifted_mask (fcppt::bit::shift_count const _bits) noexcept
 A shifted mask. More...
 
template<typename Type , fcppt::bit::shift_count Bits>
constexpr fcppt::bit::mask< Type > shifted_mask_c () noexcept
 A constant shifted mask. More...
 
template<typename Type >
bool test (Type const _value, fcppt::bit::mask< Type > const _mask) noexcept
 Tests a value against a bit mask. More...
 

Detailed Description

Bit operations.