GClasses
GClasses::GBitReverser_imp< T, numBits > Struct Template Reference

Detailed Description

template<class T, unsigned numBits>
struct GClasses::GBitReverser_imp< T, numBits >

Template used for reversing numBits of type T. You shouldn't need this, use the function reverseBits.

Taken from the post at http://www.velocityreviews.com/forums/t457514-reverse-bit-order.html by Pete Becker, Author of "The Standard C++ Library Extensions: a Tutorial and Reference"

#include <GReverseBits.h>

Static Public Member Functions

static T reverse (T val, T mask)
 

Member Function Documentation

template<class T , unsigned numBits>
static T GClasses::GBitReverser_imp< T, numBits >::reverse ( val,
mask 
)
inlinestatic