GClasses

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

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

#include <GReverseBits.h>

List of all members.

Static Public Member Functions

static T reverse (T val, T mask)

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"


Member Function Documentation

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