| 
    Crypto++ 8.9
    
   Free C++ class library of cryptographic schemes 
   | 
 
Shifts a value in the absence of overflow. More...
#include <misc.h>
Static Public Member Functions | |
| template<class T > | |
| static T | RightShift (T value, unsigned int bits) | 
| Right shifts a value that does not overflow.   | |
| template<class T > | |
| static T | LeftShift (T value, unsigned int bits) | 
| Left shifts a value that does not overflow.   | |
Shifts a value in the absence of overflow.
the false template parameter indicates overflow would not occur. In this case, SafeShifter returns the shfted value.
      
  | 
  inlinestatic | 
Right shifts a value that does not overflow.
| T | class or type | 
Since overflow == false, the shifted value is returned. 
      
  | 
  inlinestatic | 
Left shifts a value that does not overflow.
| T | class or type | 
Since overflow == false, the shifted value is returned.