Fabcoin Core  0.16.2
P2P Digital Currency
SafeRightShift Class Reference

Safely right shift values when undefined behavior could occur. More...

#include <misc.h>

Detailed Description

Safely right shift values when undefined behavior could occur.

Template Parameters
bitsthe number of bit positions to shift the value
Tclass or type
Parameters
valuethe value to right shift
Returns
the shifted value or 0

SafeRightShift safely shifts the value to the right when undefined behavior could occur under C/C++ rules. SafeRightShift will return the shifted value or 0 if undefined behavior would occur.


The documentation for this class was generated from the following file: