Regina Calculation Engine
|
Contains implementation details for BitManipulator where we optimise according to the underlying data type. More...
#include <utilities/bitmanip.h>
Public Types | |
enum | { specialised = 0 } |
Static Public Member Functions | |
static T | nextPermutation (T x) |
Returns the next largest integer with the same number of true bits as x. More... | |
Contains implementation details for BitManipulator where we optimise according to the underlying data type.
End users should use the BitManipulator class, not this class.
T | an unsigned integral numeric type, which we treat as a sequence of true and/or false bits. |
anonymous enum |
Enumerator | |
---|---|
specialised | Indicates whether this class is a template specialisation of BitManipulatorByType with extra optimisations. This compile-time constant is set to 0 for the generic implementation of BitManipulatorByType, and 1 for all specialisations. |
|
inlinestatic |
Returns the next largest integer with the same number of true
bits as x.
If x is the largest such integer (i.e., x is of the form 111...1000...0), then this routine returns 0.
x | the integer of type T to examine. |
true
bits, or 0 if this is the largest such integer.